eodms-sgdot / eodms-cli

The EODMS CLI Python script is used to search, order and download imagery from the Earth Observation Data Management System using the REST API service.
Other
28 stars 7 forks source link

Error when importing shapely Python package #15

Closed keballantyne closed 2 years ago

keballantyne commented 2 years ago

Traceback (most recent call last): File "eodms_orderdownload.py", line 58, in from utils import eod as eod_util File "/root/eodms-rapi-orderdownload/utils/init.py", line 1, in from . import spatial File "/root/eodms-rapi-orderdownload/utils/spatial.py", line 33, in import shapely.wkt File "/usr/local/lib/python3.6/site-packages/shapely/wkt.py", line 6, in from shapely import geos File "/usr/local/lib/python3.6/site-packages/shapely/geos.py", line 99, in _lgeos = load_dll('geos_c', fallbacks=alt_paths) File "/usr/local/lib/python3.6/site-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'].

keballantyne commented 2 years ago

There are a few solutions to this issue listed at https://localcoder.org/could-not-find-library-geos-c-or-load-any-of-its-variants

For Red Hat or Centos, run

yum -y install epel-release
yum -y install geos geos-devel