NRCan / geo-deep-learning

Deep learning applied to georeferenced datasets
https://geo-deep-learning.readthedocs.io/en/latest/
MIT License
150 stars 49 forks source link

BUG: Version Issue #551

Closed Hi-Chem246 closed 4 months ago

Hi-Chem246 commented 7 months ago

Description An import error arises when attempting to run the code.

"ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /opt/anaconda3/envs/geo_deep_env/lib/python3.10/site-packages/pandas/_libs/window/aggregations.cpython-310-x86_64-linux-gnu.so)"

Steps To Reproduce

  1. Clone the repository
  2. cd geo-deep-learning
  3. conda env create -f environment.yml
  4. Wait for environment to finish installing
  5. conda activate geo_deep_env
  6. python GDL.py mode=training (or tiling or inference)

Expected behavior The code should run without issue.

Environment Details

LucaRom commented 7 months ago

Hi,

I had the same problem and it was solved by exporting the library path of the current Conda environment :

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/

mpelchat04 commented 7 months ago

It seems linked to the pandas library. If @LucaRom solution doesn't work, you can try to reinstall the package from your environment.

conda remove pandas
conda install pandas -c conda-forge
mpelchat04 commented 4 months ago

@Hi-Chem246 I'm closing the issue, let us know if our solution did not help you.