nusnlp / LIF

Learning to Identify Follow-up Questions in Conversational Question Answering
GNU General Public License v3.0
13 stars 4 forks source link

Installing Problem #2

Closed MAHMOUDRR707 closed 2 months ago

MAHMOUDRR707 commented 3 months ago

I have a problem while I installing allennlp in version you mention in your requirements

` error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [327 lines of output]
        /opt/conda/lib/python3.10/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
        !!

                ********************************************************************************
                Requirements should be satisfied by a PEP 517 installer.
                If you are using pip, you can try `pip install --use-pep517`.
                ********************************************************************************

        !!
          dist.fetch_build_eggs(dist.setup_requires)
        cc1plus: warning: command line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
        preshed/maps.cpp: In function 'int __pyx_pf_7preshed_4maps_8PreshMap___init__(__pyx_obj_7preshed_4maps_PreshMap*, size_t)':
        preshed/maps.cpp:1727:35: warning: comparison of integer expressions of different signedness: 'long int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
         1727 |       __pyx_t_1 = ((__pyx_v_power < __pyx_v_initial_size) != 0);
              |                     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp: In function 'int __pyx_f_7preshed_4maps_map_iter(const __pyx_t_7preshed_4maps_MapStruct*, int*, __pyx_t_7preshed_4maps_key_t*, void**)':
        preshed/maps.cpp:4382:34: warning: comparison of integer expressions of different signedness: 'int' and 'const __pyx_t_7preshed_4maps_key_t' {aka 'const long unsigned int'} [-Wsign-compare]
         4382 |     __pyx_t_1 = (((__pyx_v_i[0]) < __pyx_v_map_->length) != 0);
              |                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:4469:32: warning: comparison of integer expressions of different signedness: 'int' and 'const __pyx_t_7preshed_4maps_key_t' {aka 'const long unsigned int'} [-Wsign-compare]
         4469 |   __pyx_t_1 = (((__pyx_v_i[0]) == __pyx_v_map_->length) != 0);
              |                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:4546:32: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
         4546 |   __pyx_t_1 = (((__pyx_v_i[0]) == (__pyx_v_map_->length + 1)) != 0);
              |                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp: In function 'int __Pyx_modinit_type_init_code()':
        preshed/maps.cpp:5728:38: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
         5728 |   __pyx_type_7preshed_4maps_PreshMap.tp_print = 0;
              |                                      ^~~~~~~~
        preshed/maps.cpp:5740:43: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
         5740 |   __pyx_type_7preshed_4maps_PreshMapArray.tp_print = 0;
              |                                           ^~~~~~~~
        preshed/maps.cpp:5749:55: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
         5749 |   __pyx_type_7preshed_4maps___pyx_scope_struct__items.tp_print = 0;
              |                                                       ^~~~~~~~
        preshed/maps.cpp:5755:55: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
         5755 |   __pyx_type_7preshed_4maps___pyx_scope_struct_1_keys.tp_print = 0;
              |                                                       ^~~~~~~~
        preshed/maps.cpp:5761:57: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
         5761 |   __pyx_type_7preshed_4maps___pyx_scope_struct_2_values.tp_print = 0;
              |                                                         ^~~~~~~~
        preshed/maps.cpp:5767:59: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
         5767 |   __pyx_type_7preshed_4maps___pyx_scope_struct_3___iter__.tp_print = 0;
              |                                                           ^~~~~~~~
        In file included from /opt/conda/include/python3.10/unicodeobject.h:1046,
                         from /opt/conda/include/python3.10/Python.h:83,
                         from preshed/maps.cpp:4:
        preshed/maps.cpp: In function 'int __Pyx_ParseOptionalKeywords(PyObject*, PyObject***, PyObject*, PyObject**, Py_ssize_t, const char*)':
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6129:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6129:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6129:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6129:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6129:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6129 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6145:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6145:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6145:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        preshed/maps.cpp:6145:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp:6145:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
         6145 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        preshed/maps.cpp: In function 'PyObject* __Pyx_Coroutine_Send(PyObject*, PyObject*)':
        preshed/maps.cpp:8447:19: error: '_PyGen_Send' was not declared in this scope; did you mean '_PyGen_yf'?
         8447 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
              |                   ^~~~~~~~~~~
              |                   _PyGen_yf
        preshed/maps.cpp:8452:19: error: '_PyGen_Send' was not declared in this scope; did you mean '_PyGen_yf'?
         8452 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
              |                   ^~~~~~~~~~~
              |                   _PyGen_yf
        preshed/maps.cpp: In function 'PyObject* __Pyx_Generator_Next(PyObject*)':
        preshed/maps.cpp:8536:19: error: '_PyGen_Send' was not declared in this scope; did you mean '_PyGen_yf'?
         8536 |             ret = _PyGen_Send((PyGenObject*)yf, NULL);
              |                   ^~~~~~~~~~~
              |                   _PyGen_yf
        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 preshed
    Running setup.py clean for preshed
    Building wheel for thinc (setup.py): started
    Building wheel for thinc (setup.py): finished with status 'error'
    error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [308 lines of output]
        /opt/conda/lib/python3.10/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
        !!

                ********************************************************************************
                Requirements should be satisfied by a PEP 517 installer.
                If you are using pip, you can try `pip install --use-pep517`.
                ********************************************************************************

        !!
          dist.fetch_build_eggs(dist.setup_requires)
        cc1plus: warning: command line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
        cc1plus: warning: command line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
        cc1plus: warning: command line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
        cc1plus: warning: command line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
        thinc/linear/avgtron.cpp: In function 'int __pyx_f_5thinc_6linear_7avgtron_18AveragedPerceptron_update_weight_ftrl(__pyx_obj_5thinc_6linear_7avgtron_AveragedPerceptron*, __pyx_t_5thinc_8typedefs_feat_t, __pyx_t_5thinc_8typedefs_class_t, __pyx_t_5thinc_8typedefs_weight_t, int)':
        thinc/linear/avgtron.cpp:7391:48: warning: taking address of packed member of '__pyx_t_5thinc_7structs_SparseArrayC' may result in an unaligned pointer value [-Waddress-of-packed-member]
         7391 |   __pyx_f_5thinc_6linear_7avgtron_adam_update((&(__pyx_v_feat->curr[__pyx_v_i]).val), (&(__pyx_v_feat->mom1[__pyx_v_i]).val), (&(__pyx_v_feat->mom2[__pyx_v_i]).val), __pyx_v_self->time, (__pyx_v_feat->times[__pyx_v_i]).val, __pyx_v_grad, __pyx_v_self->learn_rate, __pyx_v_self->momentum);
              |                                               ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:7391:88: warning: taking address of packed member of '__pyx_t_5thinc_7structs_SparseArrayC' may result in an unaligned pointer value [-Waddress-of-packed-member]
         7391 |   __pyx_f_5thinc_6linear_7avgtron_adam_update((&(__pyx_v_feat->curr[__pyx_v_i]).val), (&(__pyx_v_feat->mom1[__pyx_v_i]).val), (&(__pyx_v_feat->mom2[__pyx_v_i]).val), __pyx_v_self->time, (__pyx_v_feat->times[__pyx_v_i]).val, __pyx_v_grad, __pyx_v_self->learn_rate, __pyx_v_self->momentum);
              |                                                                                       ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:7391:128: warning: taking address of packed member of '__pyx_t_5thinc_7structs_SparseArrayC' may result in an unaligned pointer value [-Waddress-of-packed-member]
         7391 |   __pyx_f_5thinc_6linear_7avgtron_adam_update((&(__pyx_v_feat->curr[__pyx_v_i]).val), (&(__pyx_v_feat->mom1[__pyx_v_i]).val), (&(__pyx_v_feat->mom2[__pyx_v_i]).val), __pyx_v_self->time, (__pyx_v_feat->times[__pyx_v_i]).val, __pyx_v_grad, __pyx_v_self->learn_rate, __pyx_v_self->momentum);
              |                                                                                                                               ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        In file included from /opt/conda/include/python3.10/Python.h:74,
                         from thinc/linear/avgtron.cpp:4:
        thinc/linear/avgtron.cpp: In function 'void __pyx_tp_dealloc_5thinc_6linear_7avgtron_AveragedPerceptron(PyObject*)':
        /opt/conda/include/python3.10/object.h:133:58: error: lvalue required as increment operand
          133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
              |                                                          ^
        thinc/linear/avgtron.cpp:14031:7: note: in expansion of macro 'Py_REFCNT'
        14031 |     ++Py_REFCNT(o);
              |       ^~~~~~~~~
        /opt/conda/include/python3.10/object.h:133:58: error: lvalue required as decrement operand
          133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
              |                                                          ^
        thinc/linear/avgtron.cpp:14033:7: note: in expansion of macro 'Py_REFCNT'
        14033 |     --Py_REFCNT(o);
              |       ^~~~~~~~~
        In file included from /opt/conda/include/python3.10/unicodeobject.h:1046,
                         from /opt/conda/include/python3.10/Python.h:83,
                         from thinc/linear/avgtron.cpp:4:
        thinc/linear/avgtron.cpp: In function 'int __Pyx_ParseOptionalKeywords(PyObject*, PyObject***, PyObject*, PyObject**, Py_ssize_t, const char*)':
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15112:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15112:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:22: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                      ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15112:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15112:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15112:52: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15112 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                    ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15128:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15128:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:26: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                          ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          261 |       PyUnicode_WSTR_LENGTH(op) :                    \
              |       ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15128:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:262:52: warning: 'Py_UNICODE* PyUnicode_AsUnicode(PyObject*)' is deprecated [-Wdeprecated-declarations]
          262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
              |                                                    ^
        thinc/linear/avgtron.cpp:15128:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
          580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
              |                                             ^~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
          446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
              |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/cpython/unicodeobject.h:451:75: warning: 'Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)' is deprecated [-Wdeprecated-declarations]
          451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
              |                                                                           ^
        /opt/conda/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro 'PyUnicode_WSTR_LENGTH'
          264 |        PyUnicode_WSTR_LENGTH(op)))
              |        ^~~~~~~~~~~~~~~~~~~~~
        thinc/linear/avgtron.cpp:15128:59: note: in expansion of macro 'PyUnicode_GET_SIZE'
        15128 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
              |                                                           ^~~~~~~~~~~~~~~~~~
        /opt/conda/include/python3.10/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 thinc
    Running setup.py clean for thinc
  Failed to build preshed thinc
  ERROR: Could not build wheels for preshed, thinc, which is required to install pyproject.toml-based projects

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. `

linqian66 commented 3 months ago

You can find a last working version here. Feel free to try it out with this repository.

MAHMOUDRR707 commented 3 months ago

@linqian66 thanks for answering but I got this problem while I am installing allennlp as I went throw all your steps

` Collecting spacy<2.2,>=2.1.0 (from allennlp) Using cached spacy-2.1.9.tar.gz (30.7 MB) error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip

linqian66 commented 3 months ago

These links (wheel related, pip related) might be helpful. It seems that the error is connected to your virtual environment and pip.

Please also note that this project was implemented and tested on Python 3.6.