HumanSignal / HumanSignal/label-studio-ml-backend
Issue installing Flair backend on Debian with python 3.10
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 490
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
The installation from the flair backend's requirements.txt file is failing in so many steps - failing to build the wheels for scikit-learn, uwsgi, gensim, etc. A sample of the myriad errors that I see is :+1:
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from gensim/_matutils.c:18:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
gensim/_matutils.c: In function ‘__Pyx_decode_c_string’:
gensim/_matutils.c:25254:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
25254 | return PyUnicode_FromUnicode(NULL, 0);
| ^~~~~~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from gensim/_matutils.c:18:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
| ^~~~~~~~~~~~~~~~~~~~~
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 gensim
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the installation from the Flair backend's requirements.txt on Debian with Python 3.10, recording the failures for scikit-learn, gensim, and uwsgi. Read the reported wheel-build output and determine the scope of the compatibility issue; done means the requirements install successfully in the stated environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, python, scikit-learn
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100