SliDEM-project / SliDEM-python

Python package for the SliDEM project
https://hub.docker.com/repository/docker/loreabad6/slidem
Apache License 2.0
17 stars 2 forks source link

Script 2: 2_dem_generation.py; OSError: Could not find lib geos_c or load any of its variants [libgeos_c.so.1, libgeo_c.so] #44

Closed ZahraDabiri closed 1 year ago

ZahraDabiri commented 1 year ago

Describe the bug The docker was rebuilt, and now it gives me an error when running script 2: "2_dem_generation", See the bug below.

Traceback (most recent call last): File "scripts/2_dem_generation.py", line 6, in import geopandas as gpd File "/usr/local/lib/python3.6/dist-packages/geopandas/init.py", line 1, in from geopandas._config import options # noqa File "/usr/local/lib/python3.6/dist-packages/geopandas/_config.py", line 126, in default_value=_default_use_pygeos(), File "/usr/local/lib/python3.6/dist-packages/geopandas/_config.py", line 112, in _default_use_pygeos import geopandas._compat as compat File "/usr/local/lib/python3.6/dist-packages/geopandas/_compat.py", line 10, in import shapely.geos File "/usr/local/lib/python3.6/dist-packages/shapely/geos.py", line 100, in _lgeos = load_dll('geos_c', fallbacks=alt_paths) File "/usr/local/lib/python3.6/dist-packages/shapely/geos.py", line 56, in load_dll libname, fallbacks or [])) OSError: Could not find lib geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'].

To Reproduce


code was used: 

python3.6 scripts/2_dem_generation.py --download_dir data/s1/Austria --output_dir data/results/Vals --query_result Vals_20180501_20180830.csv --pair_index 0 --aoi_path data/aoi/Austria/Vals_WGS84.geojson --aoi_buffer 0.01

**Expected behavior**
**Additional context**
Add any other context about the problem here.
loreabad6 commented 1 year ago

Seems like some geopandas issue with installations, probably due to back compatibility and python version (we are still bound to 3.6 😞 I am reverting to geopandas 0.9.0

loreabad6 commented 1 year ago

@ZahraDabiri the docker image is ready for testing!