explosion / thinc

🔮 A refreshing functional take on deep learning, compatible with your favorite libraries
https://thinc.ai
MIT License
2.82k stars 275 forks source link

pipenv install failed with spacy 3.8.2 and thinc 8.3.2. #947

Open danielhallmann opened 5 days ago

danielhallmann commented 5 days ago

pipenv install failed with spacy 8.3.2 and thinc 8.3.2.

Pipfile [[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true

[packages] spacy = "*" ...

Got this compiler error

building 'thinc.backends.cblas' extension thinc/backends/cblas.cpp:20824:70: error: too few arguments to function ‘int _PyLong_AsByteArray(PyLongObject, unsigned char, size_t, int, int, int)’ : 20824 | is_little, !is_unsigned); : | ^ : In file included from /usr/local/include/python3.13/longobject.h:107, : from /usr/local/include/python3.13/Python.h:81, : from thinc/backends/cblas.cpp:24: : /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here : 111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, : | ^~~~~~~ : error: command '/usr/bin/g++' failed with exit code 1

note: This error originates from a subprocess, and is likely not a problem with pip. : ERROR: Failed building wheel for thinc

Environment: Thinc 8.3.2 Spacy 3.8.2 Python 3.13.0 Linux 6.10.4

honnibal commented 5 days ago

We don't have wheels up for 3.13 yet. The best solution is to install with --only-binary