Skip to content

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

@danielhallmann

Description

@danielhallmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions