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

No module named geoutils.georaster #494

Closed
MightyFineMoraine opened this issue Mar 20, 2024 · 7 comments
Closed

No module named geoutils.georaster #494

MightyFineMoraine opened this issue Mar 20, 2024 · 7 comments

Comments

@MightyFineMoraine
Copy link

when loading xdem into Jupyter, it cannot find the geoutils.georaster module. Geoutils version: 0.1.1.

image

@rhugonnet
Copy link
Member

Hi @MightyFineMoraine,
Strange that you would have xDEM installed with a version of GeoUtils superior than 0.0.15, the latest xDEM release (0.0.18) is forcing GeoUtils to 0.0.15 in dependencies: https://github.com/GlacioHack/xdem/blob/v0.0.18/dev-environment.yml#L18 (same in requirements.txt).

Maybe you did a developer install, or forced a version change through a forced pip install?
Can you try if normal install works for you?
https://xdem.readthedocs.io/en/stable/how_to_install.html#installing-with-mamba-recommended

@rhugonnet
Copy link
Member

Also just checked xDEM's conda feedstock which is also rightfully forcing GeoUtils to 0.0.15 (https://github.com/conda-forge/xdem-feedstock/blob/main/recipe/meta.yaml#L42), with all tests passing.
So normally classic install should work 😉

@MightyFineMoraine
Copy link
Author

I had installed them separately; uninstall and reinstall of only xdem sorted it. Thanks!

@rhugonnet
Copy link
Member

Perfect! Closing this issue.

@jbbarre
Copy link

jbbarre commented Jul 25, 2024

FYI, I did the same thing, i.e. installed geoutils and xdem separately, got the same problem and solved it with the same solution.

@rhugonnet
Copy link
Member

@jbbarre Thanks for bringing this up, I wasn't expecting this to still be an issue in the latest releases. I'll look into it.

@rhugonnet rhugonnet reopened this Jul 30, 2024
@rhugonnet
Copy link
Member

rhugonnet commented Aug 3, 2024

Tested with both conda and pip: both direct xdem install, and geoutils then later xdem now work.
Might have been related to GeoPandas dropping Fiona as a fixed dependency (fixed a couple days ago #559), or a relic of our previous issues in older releases that are now fixed (in #536 notably). Those are now tested in CI to avoid running into these issues again in the future!

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

3 participants