Skip to content
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

google colab demo: AttributeError: module 'xarray' has no attribute 'open_rasterio' #129

Open
bcf16 opened this issue Nov 16, 2023 · 2 comments

Comments

@bcf16
Copy link

bcf16 commented Nov 16, 2023

image

I am having some trouble with teh 'run interference' section of the demo. I am getting the error: AttributeError: module 'xarray' has no attribute 'open_rasterio'

I think it has something to do with xarray being replaced with rioxarray but nothing i try works.

If anyone has a workaround to fix this it would be very helpful :)

@ivanzvonkov
Copy link
Contributor

Hi a quick fix is installing a version of xarray that has the function "open_rasterio".
You can do this by adding

!pip install xarray==0.19

after installing cropharvest in the notebook.

@bcf16
Copy link
Author

bcf16 commented Nov 29, 2023

That fixed it, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants