GlacioHack / xdem

Analysis of digital elevation models (DEMs)
https://xdem.readthedocs.io/
MIT License
123 stars 37 forks source link

No module named geoutils.georaster #494

Closed MightyFineMoraine closed 3 months ago

MightyFineMoraine commented 3 months ago

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

image

rhugonnet commented 3 months ago

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 commented 3 months ago

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 :wink:

MightyFineMoraine commented 3 months ago

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

rhugonnet commented 3 months ago

Perfect! Closing this issue.