Forums

Issue -- installing shapely library

Dear All, I am installing CKANspatial-ext. It is required shapely. When I am installing the shapely with the command showing the following error. Please resolve the issue.

Downloading/unpacking Shapely==1.4.3 Running setup.py egg_info for package Shapely Traceback (most recent call last): File "<string>", line 14, in <module> File "/usr/lib/ckan/default/build/Shapely/setup.py", line 38, in <module> from shapely.libgeos import geos_version_string, geos_version, \ File "shapely/libgeos.py", line 83, in <module> clibs = get_geos_config('--clibs') File "shapely/libgeos.py", line 72, in get_geos_config raise ValueError(stderr.strip()) ValueError: Usage: geos-config [OPTIONS] Options: [--prefix] [--version] [--libs] [--cflags] [--ldflags] [--includes] [--jtsport] Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/usr/lib/ckan/default/build/Shapely/setup.py", line 38, in <module>

from shapely.libgeos import geos_version_string, geos_version, \

File "shapely/libgeos.py", line 83, in <module>

clibs = get_geos_config('--clibs')

File "shapely/libgeos.py", line 72, in get_geos_config

raise ValueError(stderr.strip())

ValueError: Usage: geos-config [OPTIONS]

Options:

 [--prefix]

 [--version]

 [--libs]

 [--cflags]

 [--ldflags]

 [--includes]

 [--jtsport]

Command python setup.py egg_info failed with error code 1 in /usr/lib/ckan/default/build/Shapely Storing complete log in /root/.pip/pip.log

Shapely 1.4.3 installs fine on PythonAnywhere with:

pip install --user shapely==1.4.3

or into a virtualenv.

Dear All, Thank you, I have tried pip install --user shapely==1.4.3 in virtual env. It is also showing same error message. Kindly help me to resolve the issue.

Thanks&Regards, Naresh

Hey, naresh. Are you sure you're using PythonAnywhere console? It looks like you're doing it on your local machine...