Closed kinglionsz closed 2 years ago
error: Swig: false Python bindings: false Ruby bindings: false PHP bindings: false
checking for python... /usr/bin/python
checking for python version... File "
checking for python platform... File "
checking for python script directory... ${prefix}/lib/python/site-packages checking for python extension module directory... ${exec_prefix}/lib/python/site-packages ./configure: line 13386: test: =: unary operator expected checking for Python include path... /usr/include/python3.8 checking for Python library path... configure: error: cannot find Python library path
solved: ./configure --prefix=$GEOS_DIR --enable-python
gedit ./configure find import sys change print ... > print(...)
then restart ./configure
ok now
Hi @kinglionsz,
Thanks for the feedback. Actually the current GEOS version that is part of this repository is quite old. If you are a Ubuntu 20.04 user, the setup.py
file should be able to compile _geoslib
with the system GEOS library if it is installed (sudo apt-get install python3-dev libgeos-3.8.0 libgeos-dev
). In this case you do not need to care about compiling GEOS or providing the GEOS_DIR
environment variable.
In the following days I will be probably updating a bit the GEOS-related part of basemap
, I would like to start using at least its version 3.5.2 since this one allows to compile GEOS quite straightforward with cmake
under GNU/Linux and also Windows.
@kinglionsz I uploaded preliminary wheel files to PyPI with libgeos_c
already bundled, we will have a stable release in PyPI soon so that end users do not need to be compiling GEOS themselves.
With Python 2 having been end-of-life since the start of the year and Ubuntu 20.04 being a long-term support release, Ubuntu developers are working hard to ensure Python 2 isn't shipped as part of this next Ubuntu LTS release.
In fact, when I installed the package, I was already aware of a problem, not code, but it was actually the code problem.
When I installed geso package,I had to stop.because the print:
matplotlibBasemap\basemap-master\geos-3.3.3\configure:
`
`
You'll find that I've changed the code.Yes.
In fact, when I installed the package, I was already aware of a problem, not code, but it was actually the code problem.
Starting today, we'll have to consider upgrading the code.
Do you have any good ideas?
Thanks