Open David-Loibl opened 5 years ago
This is partially conda being terrible at dependency resolution and combining incompatible binaries by default, and partially oggm silently ignoring failing imports of a few optional packages.
Try using one of the pre-tested environments: https://github.com/OGGM/OGGM-dependency-list/blob/master/linux-64/oggmdev-latest_py37.yml
Thanks for the swift reply and the recommendation. Maybe this hint should be added to the setup instructions, where it sounds like setting up a Python 3.7 conda environment was tested to be fully working? For me everything works fine with a Python 3.6 env at the moment. Personally, I would not consider a package that leads to failure of a key feature 'optional', though.
It was tested to be fully working, but anaconda/conda-forge changes stuff almost daily and it's impossible to keep up. Old packages are also frequently deleted, so giving a fixed "known working" environment would quickly lead to a non working install as well.
I have installed OGGM following the guide with Python 3.7 (
conda create --name oggm_env python=3.7
). When I run the steps from the Getting Started Tutorial I get the following error when trying to create the gdirs:Looking into utils/_workflow.py I realized that geopandas was loaded only optionally by a try statement. After changing this to
import geopandas as gpd
the following error pops up:Manually checking geopandas and fiona with conda did not help, both are installed and up-to-date according to conda.
I have tested this on two computers, same errors on both machines. Notably, everything works fine when choosing Python 3.6 when creating the conda environment.