Closed zsfc closed 2 years ago
Same for me on linux
13562 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/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)),\
| ^
pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
13562 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/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)),\
| ^
pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
13562 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/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)
| ^
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
264 | PyUnicode_WSTR_LENGTH(op)))
| ^~~~~~~~~~~~~~~~~~~~~
pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
13562 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/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)
| ^
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
264 | PyUnicode_WSTR_LENGTH(op)))
| ^~~~~~~~~~~~~~~~~~~~~
pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
13562 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_decode_c_bytes(const char*, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char*, const char*, PyObject* (*)(const char*, Py_ssize_t, const char*))’:
pycrfsuite/_pycrfsuite.cpp:13906:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations]
13906 | return PyUnicode_FromUnicode(NULL, 0);
| ^
In file included from /home/pawel/.pyenv/versions/3.10.1/include/python3.10/unicodeobject.h:1046,
from /home/pawel/.pyenv/versions/3.10.1/include/python3.10/Python.h:83,
from pycrfsuite/_pycrfsuite.cpp:4:
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
| ^~~~~~~~~~~~~~~~~~~~~
pycrfsuite/_pycrfsuite.cpp:13906:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations]
13906 | return PyUnicode_FromUnicode(NULL, 0);
| ^
In file included from /home/pawel/.pyenv/versions/3.10.1/include/python3.10/unicodeobject.h:1046,
from /home/pawel/.pyenv/versions/3.10.1/include/python3.10/Python.h:83,
from pycrfsuite/_pycrfsuite.cpp:4:
/home/pawel/.pyenv/versions/3.10.1/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
| ^~~~~~~~~~~~~~~~~~~~~
pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_Send(PyObject*, PyObject*)’:
pycrfsuite/_pycrfsuite.cpp:17069:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
17069 | ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
| ^~~~~~~~~~~
| _PyGen_yf
pycrfsuite/_pycrfsuite.cpp:17074:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
17074 | ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
| ^~~~~~~~~~~
| _PyGen_yf
pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Generator_Next(PyObject*)’:
pycrfsuite/_pycrfsuite.cpp:17158:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
17158 | ret = _PyGen_Send((PyGenObject*)yf, NULL);
| ^~~~~~~~~~~
| _PyGen_yf
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/pawel/.pyenv/v
I believe this is a duplicate of #130.
Yes, this is a duplicate of #130.
There is a workaround, explained here: https://github.com/scrapinghub/python-crfsuite/issues/130#issuecomment-1043277951
anyone can help me fix this error step by step ? i am a newbie and try everything i can but it not working
Python environment: Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32 OS Version: Windows 10 Pro, Build 19044
System output and error messages: