marl/pysox

Debian 11 pip install error

StuartIanNaylor opened this issue · 1 comments

pip install pysox
Collecting pysox
  Using cached pysox-0.3.6.alpha.tar.gz (169 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pysox
  Building wheel for pysox (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [220 lines of output]
      Building without Cython
      /home/stuart/Project-Ears/venv/lib/python3.9/site-packages/setuptools/dist.py:473: UserWarning: Normalizing '0.3.6.alpha' to '0.3.6a0'
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.9
      creating build/lib.linux-x86_64-3.9/pysox
      copying pysox/SoxApp.py -> build/lib.linux-x86_64-3.9/pysox
      copying pysox/__init__.py -> build/lib.linux-x86_64-3.9/pysox
      copying pysox/sox.pxd -> build/lib.linux-x86_64-3.9/pysox
      copying pysox/csox.pxd -> build/lib.linux-x86_64-3.9/pysox
      running build_ext
      building 'pysox.sox' extension
      creating build/temp.linux-x86_64-3.9
      creating build/temp.linux-x86_64-3.9/pysox
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/stuart/Project-Ears/venv/include -I/usr/include/python3.9 -c pysox/sox.c -o build/temp.linux-x86_64-3.9/pysox/sox.o
      pysox/sox.c: In function ‘__pyx_pf_5pysox_3sox_16CPysoxPipeStream___init__’:
      pysox/sox.c:4845:13: warning: variable ‘__pyx_v_fileType’ set but not used [-Wunused-but-set-variable]
       4845 |   PyObject *__pyx_v_fileType = 0;
            |             ^~~~~~~~~~~~~~~~
      pysox/sox.c:4842:13: warning: variable ‘__pyx_v_mode’ set but not used [-Wunused-but-set-variable]
       4842 |   PyObject *__pyx_v_mode = 0;
            |             ^~~~~~~~~~~~
      pysox/sox.c: In function ‘__pyx_f_5pysox_3sox_16CPysoxPipeStream_receive_header’:
      pysox/sox.c:6057:26: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       6057 |   __pyx_t_5 = (__pyx_t_4 > __pyx_v_length);
            |                          ^
      pysox/sox.c: In function ‘__pyx_f_5pysox_3sox_13CEffectsChain___calculate_signals’:
      pysox/sox.c:8177:20: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
       8177 |     if ((__pyx_t_4 > __pyx_t_5)) {
            |                    ^
      pysox/sox.c:8193:20: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
       8193 |     if ((__pyx_t_6 > __pyx_t_5)) {
            |                    ^
      pysox/sox.c: In function ‘__pyx_pf_5pysox_3sox_13__getbuffer___testflag’:
      pysox/sox.c:10349:13: warning: variable ‘__pyx_v_flags’ set but not used [-Wunused-but-set-variable]
      10349 |   PyObject *__pyx_v_flags = 0;
            |             ^~~~~~~~~~~~~
      pysox/sox.c: In function ‘__Pyx_GetException’:
      pysox/sox.c:16358:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16358 |     tmp_type = tstate->exc_type;
            |                        ^~~~~~~~
            |                        curexc_type
      pysox/sox.c:16359:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16359 |     tmp_value = tstate->exc_value;
            |                         ^~~~~~~~~
            |                         curexc_value
      pysox/sox.c:16360:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16360 |     tmp_tb = tstate->exc_traceback;
            |                      ^~~~~~~~~~~~~
            |                      curexc_traceback
      pysox/sox.c:16361:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16361 |     tstate->exc_type = local_type;
            |             ^~~~~~~~
            |             curexc_type
      pysox/sox.c:16362:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16362 |     tstate->exc_value = local_value;
            |             ^~~~~~~~~
            |             curexc_value
      pysox/sox.c:16363:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16363 |     tstate->exc_traceback = local_tb;
            |             ^~~~~~~~~~~~~
            |             curexc_traceback
      pysox/sox.c: In function ‘__Pyx_ParseOptionalKeywords’:
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c: In function ‘__Pyx_ExceptionSave’:
      pysox/sox.c:16769:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16769 |     *type = tstate->exc_type;
            |                     ^~~~~~~~
            |                     curexc_type
      pysox/sox.c:16770:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16770 |     *value = tstate->exc_value;
            |                      ^~~~~~~~~
            |                      curexc_value
      pysox/sox.c:16771:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16771 |     *tb = tstate->exc_traceback;
            |                   ^~~~~~~~~~~~~
            |                   curexc_traceback
      pysox/sox.c: In function ‘__Pyx_ExceptionReset’:
      pysox/sox.c:16780:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16780 |     tmp_type = tstate->exc_type;
            |                        ^~~~~~~~
            |                        curexc_type
      pysox/sox.c:16781:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16781 |     tmp_value = tstate->exc_value;
            |                         ^~~~~~~~~
            |                         curexc_value
      pysox/sox.c:16782:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16782 |     tmp_tb = tstate->exc_traceback;
            |                      ^~~~~~~~~~~~~
            |                      curexc_traceback
      pysox/sox.c:16783:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16783 |     tstate->exc_type = type;
            |             ^~~~~~~~
            |             curexc_type
      pysox/sox.c:16784:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16784 |     tstate->exc_value = value;
            |             ^~~~~~~~~
            |             curexc_value
      pysox/sox.c:16785:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16785 |     tstate->exc_traceback = tb;
            |             ^~~~~~~~~~~~~
            |             curexc_traceback
      pysox/sox.c: In function ‘__pyx_binding_PyCFunctionType_NewEx’:
      pysox/sox.c:17087:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
      17087 |     if (op == NULL)
            |     ^~
      pysox/sox.c:17089:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      17089 |  op->func.m_ml = ml;
            |  ^~
      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 pysox
  Running setup.py clean for pysox
Failed to build pysox
Installing collected packages: pysox
  Running setup.py install for pysox ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for pysox did not run successfully.
  │ exit code: 1
  ╰─> [220 lines of output]
      Building without Cython
      /home/stuart/Project-Ears/venv/lib/python3.9/site-packages/setuptools/dist.py:473: UserWarning: Normalizing '0.3.6.alpha' to '0.3.6a0'
        warnings.warn(
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.9
      creating build/lib.linux-x86_64-3.9/pysox
      copying pysox/SoxApp.py -> build/lib.linux-x86_64-3.9/pysox
      copying pysox/__init__.py -> build/lib.linux-x86_64-3.9/pysox
      copying pysox/sox.pxd -> build/lib.linux-x86_64-3.9/pysox
      copying pysox/csox.pxd -> build/lib.linux-x86_64-3.9/pysox
      running build_ext
      building 'pysox.sox' extension
      creating build/temp.linux-x86_64-3.9
      creating build/temp.linux-x86_64-3.9/pysox
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/stuart/Project-Ears/venv/include -I/usr/include/python3.9 -c pysox/sox.c -o build/temp.linux-x86_64-3.9/pysox/sox.o
      pysox/sox.c: In function ‘__pyx_pf_5pysox_3sox_16CPysoxPipeStream___init__’:
      pysox/sox.c:4845:13: warning: variable ‘__pyx_v_fileType’ set but not used [-Wunused-but-set-variable]
       4845 |   PyObject *__pyx_v_fileType = 0;
            |             ^~~~~~~~~~~~~~~~
      pysox/sox.c:4842:13: warning: variable ‘__pyx_v_mode’ set but not used [-Wunused-but-set-variable]
       4842 |   PyObject *__pyx_v_mode = 0;
            |             ^~~~~~~~~~~~
      pysox/sox.c: In function ‘__pyx_f_5pysox_3sox_16CPysoxPipeStream_receive_header’:
      pysox/sox.c:6057:26: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       6057 |   __pyx_t_5 = (__pyx_t_4 > __pyx_v_length);
            |                          ^
      pysox/sox.c: In function ‘__pyx_f_5pysox_3sox_13CEffectsChain___calculate_signals’:
      pysox/sox.c:8177:20: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
       8177 |     if ((__pyx_t_4 > __pyx_t_5)) {
            |                    ^
      pysox/sox.c:8193:20: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
       8193 |     if ((__pyx_t_6 > __pyx_t_5)) {
            |                    ^
      pysox/sox.c: In function ‘__pyx_pf_5pysox_3sox_13__getbuffer___testflag’:
      pysox/sox.c:10349:13: warning: variable ‘__pyx_v_flags’ set but not used [-Wunused-but-set-variable]
      10349 |   PyObject *__pyx_v_flags = 0;
            |             ^~~~~~~~~~~~~
      pysox/sox.c: In function ‘__Pyx_GetException’:
      pysox/sox.c:16358:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16358 |     tmp_type = tstate->exc_type;
            |                        ^~~~~~~~
            |                        curexc_type
      pysox/sox.c:16359:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16359 |     tmp_value = tstate->exc_value;
            |                         ^~~~~~~~~
            |                         curexc_value
      pysox/sox.c:16360:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16360 |     tmp_tb = tstate->exc_traceback;
            |                      ^~~~~~~~~~~~~
            |                      curexc_traceback
      pysox/sox.c:16361:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16361 |     tstate->exc_type = local_type;
            |             ^~~~~~~~
            |             curexc_type
      pysox/sox.c:16362:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16362 |     tstate->exc_value = local_value;
            |             ^~~~~~~~~
            |             curexc_value
      pysox/sox.c:16363:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16363 |     tstate->exc_traceback = local_tb;
            |             ^~~~~~~~~~~~~
            |             curexc_traceback
      pysox/sox.c: In function ‘__Pyx_ParseOptionalKeywords’:
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16491:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16491 |                     if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                     ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      pysox/sox.c:16505:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      16505 |                         if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
            |                         ^~
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:97,
                       from pysox/sox.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pysox/sox.c: In function ‘__Pyx_ExceptionSave’:
      pysox/sox.c:16769:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16769 |     *type = tstate->exc_type;
            |                     ^~~~~~~~
            |                     curexc_type
      pysox/sox.c:16770:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16770 |     *value = tstate->exc_value;
            |                      ^~~~~~~~~
            |                      curexc_value
      pysox/sox.c:16771:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16771 |     *tb = tstate->exc_traceback;
            |                   ^~~~~~~~~~~~~
            |                   curexc_traceback
      pysox/sox.c: In function ‘__Pyx_ExceptionReset’:
      pysox/sox.c:16780:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16780 |     tmp_type = tstate->exc_type;
            |                        ^~~~~~~~
            |                        curexc_type
      pysox/sox.c:16781:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16781 |     tmp_value = tstate->exc_value;
            |                         ^~~~~~~~~
            |                         curexc_value
      pysox/sox.c:16782:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16782 |     tmp_tb = tstate->exc_traceback;
            |                      ^~~~~~~~~~~~~
            |                      curexc_traceback
      pysox/sox.c:16783:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
      16783 |     tstate->exc_type = type;
            |             ^~~~~~~~
            |             curexc_type
      pysox/sox.c:16784:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
      16784 |     tstate->exc_value = value;
            |             ^~~~~~~~~
            |             curexc_value
      pysox/sox.c:16785:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
      16785 |     tstate->exc_traceback = tb;
            |             ^~~~~~~~~~~~~
            |             curexc_traceback
      pysox/sox.c: In function ‘__pyx_binding_PyCFunctionType_NewEx’:
      pysox/sox.c:17087:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
      17087 |     if (op == NULL)
            |     ^~
      pysox/sox.c:17089:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      17089 |  op->func.m_ml = ml;
            |  ^~
      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.
╰─> pysox

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.