Closed sscherfke closed 6 years ago
It looks like regenerating the C sources with cythonize helps:
# Ensure our geos will be used.
rm -rf $SRC_DIR/geos-3.3.3
export GEOS_DIR=$PREFIX
# Regenerate C sources for Python 3.7
cythonize --force src/_geoslib.pyx
$PYTHON -m pip install -I --no-deps .
Thanks @sscherfke that and installing pyproj from source fixed my problem with python 3.7!
I would welcome a PR that updates the cython output.
On Thu, Jul 19, 2018 at 10:22 AM, Lukas Guz notifications@github.com wrote:
Thanks @sscherfke https://github.com/sscherfke that and installing pyproj from source fixed my problem with python 3.7!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matplotlib/basemap/issues/414#issuecomment-406293785, or mute the thread https://github.com/notifications/unsubscribe-auth/AARy-EbpyuzEKxe4NNDbthjc7H-luUj3ks5uIJYsgaJpZM4VSlMz .
FWIW, I ran into this issue building my project with Python 3.7.1 and this thread got me on the right track. The only step necessary was to build pyproj from source before installing basemap. If I list pyproj github repo in my requirements.txt, this takes care of itself.
git+https://github.com/jswhit/pyproj
git+https://github.com/matplotlib/basemap
Cythonizing src/_geoslib.pyx
was thus not necessary for me.
This is on Fedora 24, basemap-1.2.0, matplotlib-3.0.1, pyproj-1.9.5.1, geos-devel-3.5.0.3.
I am trying to build basemap for Python 3.7 with conda-build. The build fails with the following error:
I have tried the latest release as well as the current master. I tried NumPy 1.14 and the RC for 1.15. I tried using an external libgeos and using the bundled one.
All combinations are working with Python 3.6 but failing with 3.7.