gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
195 stars 77 forks source link

Failed installation when install in virtualenv #95

Closed irfanpule closed 1 year ago

irfanpule commented 1 year ago

Hi, I found some error when I install in virtualenv, but if I am install on global env it's work.

compilation terminated.
      x86_64-linux-gnu-g++ -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/extensions/gnm_wrap.o -lgdal -o build/lib.linux-x86_64-3.10/osgeo/_gnm.cpython-310-x86_64-linux-gnu.so
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> gdal

Can you help me to be able to install geoserver-rest on virtualenv? I'm trying to keep my global env clean.

Thanks.

iamtekson commented 1 year ago

Hi, If you are sure that you installed the gdal and other dependencies, then you can install the package without having any issue by running following code,

pip install geoserver-rest --no-deps