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

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

Open
danielhallmann opened this issue Oct 25, 2024 · 1 comment
Open

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

danielhallmann opened this issue Oct 25, 2024 · 1 comment

Comments

@danielhallmann
Copy link

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

@danielhallmann danielhallmann changed the title pipenv install failed with spacy 8.3.2 and think 8.3.2. pipenv install failed with spacy 8.3.2 and thinc 8.3.2. Oct 25, 2024
@danielhallmann danielhallmann changed the title pipenv install failed with spacy 8.3.2 and thinc 8.3.2. pipenv install failed with spacy 3.8.2 and thinc 8.3.2. Oct 25, 2024
@honnibal
Copy link
Member

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

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

2 participants