Open
Description
As in title trying to install mpack fails for python3.9 and 3.10
To reproduce
Ran on docker image ubuntu:22.04
Set PYTHON_VERSION accordingly, tested on 3.9 and 3.10
docker run -it ubuntu:22.04 bash
apt update && apt install software-properties-common -y
add-apt-repository ppa:deadsnakes/ppa
sudo apt install python${PYTHON_VERSION} python3-pip python3-dev gcc -y
pip install mpack
Resulting error for python3.10
Collecting mpack
Using cached mpack-1.1.0.tar.gz (131 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: future in /usr/local/lib/python3.10/dist-packages (from mpack) (0.18.3)
Building wheels for collected packages: mpack
Building wheel for mpack (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [169 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/mpack
copying mpack/asyncio.py -> build/lib.linux-x86_64-3.10/mpack
copying mpack/__init__.py -> build/lib.linux-x86_64-3.10/mpack
running build_ext
building 'mpack._mpack' extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/mpack
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -c mpack/_mpack.c -o build/temp.linux-x86_64-3.10/mpack/_mpack.o
mpack/_mpack.c: In function ‘__pyx_tp_dealloc_5mpack_6_mpack_Registry’:
mpack/_mpack.c:13060:5: error: lvalue required as increment operand
13060 | ++Py_REFCNT(o);
| ^~
mpack/_mpack.c:13062:5: error: lvalue required as decrement operand
13062 | --Py_REFCNT(o);
| ^~
mpack/_mpack.c: In function ‘__pyx_tp_dealloc_5mpack_6_mpack_Parser’:
mpack/_mpack.c:13185:5: error: lvalue required as increment operand
13185 | ++Py_REFCNT(o);
| ^~
mpack/_mpack.c:13187:5: error: lvalue required as decrement operand
13187 | --Py_REFCNT(o);
| ^~
mpack/_mpack.c: In function ‘__pyx_tp_dealloc_5mpack_6_mpack_Session’:
mpack/_mpack.c:13522:5: error: lvalue required as increment operand
13522 | ++Py_REFCNT(o);
| ^~
mpack/_mpack.c:13524:5: error: lvalue required as decrement operand
13524 | --Py_REFCNT(o);
| ^~
mpack/_mpack.c: In function ‘__Pyx_modinit_type_init_code’:
mpack/_mpack.c:14397:32: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14397 | __pyx_type_5mpack_6_mpack_Ref.tp_print = 0;
| ^
mpack/_mpack.c:14408:37: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14408 | __pyx_type_5mpack_6_mpack_Registry.tp_print = 0;
| ^
mpack/_mpack.c:14421:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14421 | __pyx_type_5mpack_6_mpack_Parser.tp_print = 0;
| ^
mpack/_mpack.c:14434:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14434 | __pyx_type_5mpack_6_mpack_Packer.tp_print = 0;
| ^
mpack/_mpack.c:14447:37: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14447 | __pyx_type_5mpack_6_mpack_Unpacker.tp_print = 0;
| ^
mpack/_mpack.c:14461:36: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14461 | __pyx_type_5mpack_6_mpack_Session.tp_print = 0;
| ^
mpack/_mpack.c:14470:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14470 | __pyx_type_5mpack_6_mpack___pyx_scope_struct____init__.tp_print = 0;
| ^
mpack/_mpack.c:14476:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14476 | __pyx_type_5mpack_6_mpack___pyx_scope_struct_1___init__.tp_print = 0;
| ^
mpack/_mpack.c: In function ‘__Pyx_ParseOptionalKeywords’:
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/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/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mpack
Running setup.py clean for mpack
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
running clean
error: [Errno 2] No such file or directory: '.gitignore'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for mpack
Failed to build mpack
Installing collected packages: mpack
Running setup.py install for mpack ... error
error: subprocess-exited-with-error
× Running setup.py install for mpack did not run successfully.
│ exit code: 1
╰─> [164 lines of output]
running install
/usr/lib/python3/dist-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
running build_ext
building 'mpack._mpack' extension
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -c mpack/_mpack.c -o build/temp.linux-x86_64-3.10/mpack/_mpack.o
mpack/_mpack.c: In function ‘__pyx_tp_dealloc_5mpack_6_mpack_Registry’:
mpack/_mpack.c:13060:5: error: lvalue required as increment operand
13060 | ++Py_REFCNT(o);
| ^~
mpack/_mpack.c:13062:5: error: lvalue required as decrement operand
13062 | --Py_REFCNT(o);
| ^~
mpack/_mpack.c: In function ‘__pyx_tp_dealloc_5mpack_6_mpack_Parser’:
mpack/_mpack.c:13185:5: error: lvalue required as increment operand
13185 | ++Py_REFCNT(o);
| ^~
mpack/_mpack.c:13187:5: error: lvalue required as decrement operand
13187 | --Py_REFCNT(o);
| ^~
mpack/_mpack.c: In function ‘__pyx_tp_dealloc_5mpack_6_mpack_Session’:
mpack/_mpack.c:13522:5: error: lvalue required as increment operand
13522 | ++Py_REFCNT(o);
| ^~
mpack/_mpack.c:13524:5: error: lvalue required as decrement operand
13524 | --Py_REFCNT(o);
| ^~
mpack/_mpack.c: In function ‘__Pyx_modinit_type_init_code’:
mpack/_mpack.c:14397:32: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14397 | __pyx_type_5mpack_6_mpack_Ref.tp_print = 0;
| ^
mpack/_mpack.c:14408:37: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14408 | __pyx_type_5mpack_6_mpack_Registry.tp_print = 0;
| ^
mpack/_mpack.c:14421:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14421 | __pyx_type_5mpack_6_mpack_Parser.tp_print = 0;
| ^
mpack/_mpack.c:14434:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14434 | __pyx_type_5mpack_6_mpack_Packer.tp_print = 0;
| ^
mpack/_mpack.c:14447:37: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14447 | __pyx_type_5mpack_6_mpack_Unpacker.tp_print = 0;
| ^
mpack/_mpack.c:14461:36: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14461 | __pyx_type_5mpack_6_mpack_Session.tp_print = 0;
| ^
mpack/_mpack.c:14470:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14470 | __pyx_type_5mpack_6_mpack___pyx_scope_struct____init__.tp_print = 0;
| ^
mpack/_mpack.c:14476:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
14476 | __pyx_type_5mpack_6_mpack___pyx_scope_struct_1___init__.tp_print = 0;
| ^
mpack/_mpack.c: In function ‘__Pyx_ParseOptionalKeywords’:
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15367:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15367 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
mpack/_mpack.c:15383:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
15383 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from mpack/_mpack.c:23:
/usr/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/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> mpack
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Metadata
Metadata
Assignees
Labels
No labels