Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to pip install under Python 3.13 #362

Open
psd opened this issue Mar 5, 2025 · 0 comments
Open

Fails to pip install under Python 3.13 #362

psd opened this issue Mar 5, 2025 · 0 comments

Comments

@psd
Copy link
Member

psd commented Mar 5, 2025

Python 3.13 has some significant performance gains, but installing digital-land-python failes, possibly due to some pinned package versions in setup.py:

building 'shapely.lib' extension
      creating build/temp.linux-x86_64-cpython-313/src
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/home/psd/src/digital-land/digital-land-python/.venv/include -I/usr/include/python3.13 -I/tmp/pip-build-env-h3hilvct/overlay/lib/python3.13/site-packages/numpy/_core/include -c src/c_api.c -o build/temp.linux-x86_64-cpython-313/src/c_api.o
      In file included from src/c_api.h:22,
                       from src/c_api.c:15:
      src/geos.h:15:10: fatal error: geos_c.h: No such file or directory
         15 | #include <geos_c.h>
            |          ^~~~~~~~~~
      compilation terminated.
      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: Failed building wheel for Shapely

and later

  × Building wheel for cchardet (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-313/cchardet
      copying src/cchardet/__init__.py -> build/lib.linux-x86_64-cpython-313/cchardet
      copying src/cchardet/version.py -> build/lib.linux-x86_64-cpython-313/cchardet
      running build_ext
      building 'cchardet._cchardet' extension
      creating build/temp.linux-x86_64-cpython-313/src/cchardet
      creating build/temp.linux-x86_64-cpython-313/src/ext/uchardet/src
      creating build/temp.linux-x86_64-cpython-313/src/ext/uchardet/src/LangModels
      x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -Isrc/ext/uchardet/src -I/home/psd/src/digital-land/digital-land-python/.venv/include -I/usr/include/python3.13 -c src/cchardet/_cchardet.cpp -o build/temp.linux-x86_64-cpython-313/src/cchardet/_cchardet.o
      src/cchardet/_cchardet.cpp:196:12: fatal error: longintrepr.h: No such file or directory
        196 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant