Open manueldeprada opened 1 year ago
Installing python3.10-dev
solves it, I haven't tried it on 3.11
Same error here: Fedora 37, python 3.11.1, tried to install GPy 1.10.0 via pip.
Apparently there are no binary wheels available for python 3.11 (and 3.100, too). Pip then tries to locally build GPy, and there is this failure (which is due to changes in CPython):
gcc [...] -c GPy/kern/src/stationary_cython.c -o [...]/stationary_cython.o [...]
GPy/kern/src/stationary_cython.c:196:12: fatal error: longintrepr.h: No such file or directory
196 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
(hasty notes)
Looking at this for a conda environment too. There the .h
file is in the conda env, but the path to find it is missing.
It only looks in include/python3.11
instead of include/python3.11/cython
which is where the .h
file is.
The real fix is for someone to run cython on each of the .pyx files in the repository, and replacing the generated .c files in the repository.
Hi, are there any plans to support python 3.11? This is going to be a progressively bigger issue as times goes by. Is some help needed?
Note for whoever is following this issue: the closer fix seems to be this PR: #1020.
I came across this error while trying to install on Python 3.11 or Python 3.10:
Solution I found: download sources from git, link like
ln -s /usr/include/python3.10/cpython/longintrepr.h longintrepr.h
and build GPy.It still doesn't build in Python 3.11 due API changes like this one:
but soft-linking longintrepr.h allows successful building with Python 3.10.