Hi! I'm trying to install nlpnet with pip, but I keep getting the same error (ERROR: Failed building wheel for nlpnet) and then error: legacy-install-failure in the end. pip, wheel and setuptools are updated. Could you help me, please? I'm using python 3.9
pip install nlpnet
Collecting nlpnet
Using cached nlpnet-1.2.4.tar.gz (393 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.9.0 in ./anaconda3/lib/python3.9/site-packages (from nlpnet) (1.20.3)
Requirement already satisfied: nltk>=3.2.2 in ./anaconda3/lib/python3.9/site-packages (from nlpnet) (3.6.5)
Requirement already satisfied: six>=1.10 in ./anaconda3/lib/python3.9/site-packages (from nlpnet) (1.16.0)
Requirement already satisfied: h5py>=2.8.0rc1 in ./anaconda3/lib/python3.9/site-packages (from nlpnet) (3.3.0)
Requirement already satisfied: click in ./anaconda3/lib/python3.9/site-packages (from nltk>=3.2.2->nlpnet) (8.0.3)
Requirement already satisfied: joblib in ./anaconda3/lib/python3.9/site-packages (from nltk>=3.2.2->nlpnet) (1.1.0)
Requirement already satisfied: regex>=2021.8.3 in ./anaconda3/lib/python3.9/site-packages (from nltk>=3.2.2->nlpnet) (2021.8.3)
Requirement already satisfied: tqdm in ./anaconda3/lib/python3.9/site-packages (from nltk>=3.2.2->nlpnet) (4.62.3)
Building wheels for collected packages: nlpnet
Building wheel for nlpnet (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [188 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/attributes.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/arguments.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/metadata.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/taggers.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/config.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/utils.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/word_dictionary.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet
creating build/lib.linux-x86_64-cpython-39/nlpnet/pos
copying nlpnet/pos/pos_reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/pos
copying nlpnet/pos/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet/pos
copying nlpnet/pos/macmorphoreader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/pos
creating build/lib.linux-x86_64-cpython-39/nlpnet/srl
copying nlpnet/srl/train_srl.py -> build/lib.linux-x86_64-cpython-39/nlpnet/srl
copying nlpnet/srl/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet/srl
copying nlpnet/srl/srl_reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/srl
creating build/lib.linux-x86_64-cpython-39/nlpnet/parse
copying nlpnet/parse/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet/parse
copying nlpnet/parse/parse_reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/parse
running build_ext
building 'nlpnet.network' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/nlpnet
gcc -pthread -B /home/victor/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/victor/anaconda3/include -I/home/victor/anaconda3/include -fPIC -O2 -isystem /home/victor/anaconda3/include -fPIC -I. -I/home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include -I/home/victor/anaconda3/include/python3.9 -c nlpnet/network.c -o build/temp.linux-x86_64-cpython-39/nlpnet/network.o
In file included from /home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944,
from /home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from nlpnet/network.c:593:
/home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
nlpnet/network.c: In function ‘__Pyx_modinit_type_init_code’:
nlpnet/network.c:57798:38: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57798 | __pyx_type_6nlpnet_7network_Network.tp_print = 0;
| ^
nlpnet/network.c:57819:51: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57819 | __pyx_type_6nlpnet_7network_ConvolutionalNetwork.tp_print = 0;
| ^
nlpnet/network.c:57831:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57831 | __pyx_type_6nlpnet_7network_ConvolutionalDependencyNetwork.tp_print = 0;
| ^
nlpnet/network.c:57840:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57840 | __pyx_type_6nlpnet_7network___pyx_scope_struct__create_new.tp_print = 0;
| ^
nlpnet/network.c:57846:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57846 | __pyx_type_6nlpnet_7network___pyx_scope_struct_1_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57852:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57852 | __pyx_type_6nlpnet_7network___pyx_scope_struct_2_train.tp_print = 0;
| ^
nlpnet/network.c:57858:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57858 | __pyx_type_6nlpnet_7network___pyx_scope_struct_3_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57864:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57864 | __pyx_type_6nlpnet_7network___pyx_scope_struct_4__validate.tp_print = 0;
| ^
nlpnet/network.c:57870:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57870 | __pyx_type_6nlpnet_7network___pyx_scope_struct_5_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57876:62: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57876 | __pyx_type_6nlpnet_7network___pyx_scope_struct_6_create_new.tp_print = 0;
| ^
nlpnet/network.c:57882:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57882 | __pyx_type_6nlpnet_7network___pyx_scope_struct_7_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57888:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57888 | __pyx_type_6nlpnet_7network___pyx_scope_struct_8_train.tp_print = 0;
| ^
nlpnet/network.c:57894:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57894 | __pyx_type_6nlpnet_7network___pyx_scope_struct_9_genexpr.tp_print = 0;
| ^
nlpnet/network.c: In function ‘__Pyx_ParseOptionalKeywords’:
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/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 nlpnet
Running setup.py clean for nlpnet
Failed to build nlpnet
Installing collected packages: nlpnet
Running setup.py install for nlpnet ... error
error: subprocess-exited-with-error
× Running setup.py install for nlpnet did not run successfully.
│ exit code: 1
╰─> [190 lines of output]
running install
/home/victor/anaconda3/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/attributes.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/arguments.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/metadata.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/taggers.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/config.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/utils.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/word_dictionary.py -> build/lib.linux-x86_64-cpython-39/nlpnet
copying nlpnet/reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet
creating build/lib.linux-x86_64-cpython-39/nlpnet/pos
copying nlpnet/pos/pos_reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/pos
copying nlpnet/pos/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet/pos
copying nlpnet/pos/macmorphoreader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/pos
creating build/lib.linux-x86_64-cpython-39/nlpnet/srl
copying nlpnet/srl/train_srl.py -> build/lib.linux-x86_64-cpython-39/nlpnet/srl
copying nlpnet/srl/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet/srl
copying nlpnet/srl/srl_reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/srl
creating build/lib.linux-x86_64-cpython-39/nlpnet/parse
copying nlpnet/parse/init.py -> build/lib.linux-x86_64-cpython-39/nlpnet/parse
copying nlpnet/parse/parse_reader.py -> build/lib.linux-x86_64-cpython-39/nlpnet/parse
running build_ext
building 'nlpnet.network' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/nlpnet
gcc -pthread -B /home/victor/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/victor/anaconda3/include -I/home/victor/anaconda3/include -fPIC -O2 -isystem /home/victor/anaconda3/include -fPIC -I. -I/home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include -I/home/victor/anaconda3/include/python3.9 -c nlpnet/network.c -o build/temp.linux-x86_64-cpython-39/nlpnet/network.o
In file included from /home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944,
from /home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from nlpnet/network.c:593:
/home/victor/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
nlpnet/network.c: In function ‘__Pyx_modinit_type_init_code’:
nlpnet/network.c:57798:38: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57798 | __pyx_type_6nlpnet_7network_Network.tp_print = 0;
| ^
nlpnet/network.c:57819:51: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57819 | __pyx_type_6nlpnet_7network_ConvolutionalNetwork.tp_print = 0;
| ^
nlpnet/network.c:57831:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57831 | __pyx_type_6nlpnet_7network_ConvolutionalDependencyNetwork.tp_print = 0;
| ^
nlpnet/network.c:57840:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57840 | __pyx_type_6nlpnet_7network___pyx_scope_struct__create_new.tp_print = 0;
| ^
nlpnet/network.c:57846:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57846 | __pyx_type_6nlpnet_7network___pyx_scope_struct_1_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57852:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57852 | __pyx_type_6nlpnet_7network___pyx_scope_struct_2_train.tp_print = 0;
| ^
nlpnet/network.c:57858:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57858 | __pyx_type_6nlpnet_7network___pyx_scope_struct_3_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57864:61: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57864 | __pyx_type_6nlpnet_7network___pyx_scope_struct_4__validate.tp_print = 0;
| ^
nlpnet/network.c:57870:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57870 | __pyx_type_6nlpnet_7network___pyx_scope_struct_5_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57876:62: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57876 | __pyx_type_6nlpnet_7network___pyx_scope_struct_6_create_new.tp_print = 0;
| ^
nlpnet/network.c:57882:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57882 | __pyx_type_6nlpnet_7network___pyx_scope_struct_7_genexpr.tp_print = 0;
| ^
nlpnet/network.c:57888:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57888 | __pyx_type_6nlpnet_7network___pyx_scope_struct_8_train.tp_print = 0;
| ^
nlpnet/network.c:57894:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
57894 | __pyx_type_6nlpnet_7network___pyx_scope_struct_9_genexpr.tp_print = 0;
| ^
nlpnet/network.c: In function ‘__Pyx_ParseOptionalKeywords’:
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59641:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59641 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
nlpnet/network.c:59657:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
59657 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /home/victor/anaconda3/include/python3.9/unicodeobject.h:1026,
from /home/victor/anaconda3/include/python3.9/Python.h:106,
from nlpnet/network.c:4:
/home/victor/anaconda3/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/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: legacy-install-failure
× Encountered error while trying to install package.
╰─> nlpnet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.