-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'DataGranules' object has no attribute 'headers' with python-cmr==0.7.0
#386
Comments
Thanks for the report, especially for documenting all the versions you tested! ❤️ |
We tried to reproduce and had no luck. Is this still occurring for you? If this was an intermittent issue with an external system, we should show a better error message. |
For reference, I tried with 0.8.0 and 0.8.1, but both times wasn't able to reproduce any error In [1]: import earthaccess
In [2]: results = earthaccess.granule_query().short_name('MOD13Q1').bounding_box(-73.73,-55.01,-67.05,-17.63).version('061').temporal('2023-01-01','2023-01-31').get_all()
In [3]: len(results)
Out[3]: 30 |
I tried to reproduce it in a fresh environment:
And it worked well. I tested again in the original environment where I found the error and got the same result:
With this error message, I upgraded Although the setup requires v0.9.0, the installation using pip didn't upgrade the package version:
I've been using this library since it was called Thanks for following up on the case Cheers |
Thank you for this extra information, I think I understand the problem much better now! v0.9.0 is actually only our locked dependency on python-cmr. In Is our pin of My bandwidth is so saturated this week... sorry... @jrbourbeau @betolink @jhkennedy would you mind considering whether this should be addressed before AGU? We could have participants in workshops with older environments that technically satisfy our dependency spec, but fail at runtime. Bonus thought: |
python-cmr==0.7.0
We do this over in Dask and Xarray. Those projects use conda environment files for managing their dependencies (like this). I could quickly push something up that follows that pattern, but it would be different than our main testing setup here. Do folks know if there's an easy way to tell poetry to "install the minimum supported version of my dependencies"? |
Sick! How did you generate these mindeps files? I use conda for pretty much all my projects and would love to implement this technique in at least one. EDIT: I copied from your post, and GitHub changed which "this" has the hyperlink. That is weird as heck. |
In Dask, just manually making sure the versions match what we have in |
With version 0.8.0, I'm getting
AttributeError
after querying.The error is
AttributeError: 'DataGranules' object has no attribute 'headers'
:I tested past versions and I got the same problem with 0.7.0 and 0.7.1. I rolled back to 0.6.1 and it's working now.
Any hints?
The text was updated successfully, but these errors were encountered: