Skip to content

Magicmemoryview, ruaumoko errors #111

Description

@Darek2233

When I try to install requirements (pip install -r requirements.txt) I recieved this errors:

Building wheels for collected packages: Tawhiri, magicmemoryview, ruaumoko
  Building editable for Tawhiri (pyproject.toml) ... done
  Created wheel for Tawhiri: filename=tawhiri-0.2.0-0.editable-py3-none-any.whl size=15948 sha256=fddb7112cd80ca22aa8939e35f5dfb917955d9cf54c150a6d38457b2a49f025b
  Stored in directory: /tmp/pip-ephem-wheel-cache-rqke97__/wheels/b1/b7/0e/0b0069bc8afb9f76cd2c43e293c6712f74f0aa8dd5159ea66c
  Building wheel for magicmemoryview (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for magicmemoryview (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [135 lines of output]
      /tmp/pip-build-env-06vljzae/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_ext
      building 'magicmemoryview' extension
      creating build/temp.linux-x86_64-cpython-312
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/home/user/tawhiri/venv/include -I/usr/include/python3.12 -c magicmemoryview.c -o build/temp.linux-x86_64-cpython-312/magicmemoryview.o
      magicmemoryview.c: In function ‘__pyx_pf_15magicmemoryview_15MagicMemoryView_4__init__’:
      magicmemoryview.c:1070:3: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
       1070 |   __pyx_v_result = PyObject_AsReadBuffer(__pyx_v_buffer, (&__pyx_v_cbuf), (&__pyx_v_self->len));
            |   ^~~~~~~~~~~~~~
      magicmemoryview.c:679:31: note: declared here
        679 | __PYX_EXTERN_C DL_IMPORT(int) PyObject_AsReadBuffer(PyObject *, void const **, Py_ssize_t *); /*proto*/
            |                               ^~~~~~~~~~~~~~~~~~~~~
      magicmemoryview.c: In function ‘__pyx_tp_dealloc_15magicmemoryview_MagicMemoryView’:
      magicmemoryview.c:1325:5: error: lvalue required as increment operand
       1325 |     ++Py_REFCNT(o);
            |     ^~
      magicmemoryview.c:1328:5: error: lvalue required as decrement operand
       1328 |     --Py_REFCNT(o);
            |     ^~
      magicmemoryview.c: In function ‘__Pyx_ParseOptionalKeywords’:
      magicmemoryview.c:1800:22: warning: implicit declaration of function ‘PyUnicode_GET_SIZE’; did you mean ‘PyDict_GET_SIZE’? [-Wimplicit-function-declaration]
       1800 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                      ^~~~~~~~~~~~~~~~~~
            |                      PyDict_GET_SIZE
      magicmemoryview.c: In function ‘__Pyx_ErrRestore’:
      magicmemoryview.c:1952:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
       1952 |     tmp_type = tstate->curexc_type;
            |                      ^~
      magicmemoryview.c:1953:23: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
       1953 |     tmp_value = tstate->curexc_value;
            |                       ^~
      magicmemoryview.c:1954:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
       1954 |     tmp_tb = tstate->curexc_traceback;
            |                    ^~
      magicmemoryview.c:1955:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
       1955 |     tstate->curexc_type = type;
            |           ^~
      magicmemoryview.c:1956:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
       1956 |     tstate->curexc_value = value;
            |           ^~
      magicmemoryview.c:1957:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
       1957 |     tstate->curexc_traceback = tb;
            |           ^~
      magicmemoryview.c: In function ‘__Pyx_ErrFetch’:
      magicmemoryview.c:1968:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
       1968 |     *type = tstate->curexc_type;
            |                   ^~
      magicmemoryview.c:1969:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
       1969 |     *value = tstate->curexc_value;
            |                    ^~
      magicmemoryview.c:1970:17: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
       1970 |     *tb = tstate->curexc_traceback;
            |                 ^~
      magicmemoryview.c:1971:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
       1971 |     tstate->curexc_type = 0;
            |           ^~
      magicmemoryview.c:1972:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
       1972 |     tstate->curexc_value = 0;
            |           ^~
      magicmemoryview.c:1973:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
       1973 |     tstate->curexc_traceback = 0;
            |           ^~
      magicmemoryview.c: In function ‘__Pyx_Raise’:
      magicmemoryview.c:2075:9: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
       2075 |         owned_instance = PyEval_CallObject(type, args);
            |         ^~~~~~~~~~~~~~
      In file included from /usr/include/python3.12/Python.h:95,
                       from magicmemoryview.c:16:
      /usr/include/python3.12/ceval.h:27:43: note: declared here
         27 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
            |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      magicmemoryview.c:2118:34: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
       2118 |         PyObject* tmp_tb = tstate->curexc_traceback;
            |                                  ^~
      magicmemoryview.c:2121:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
       2121 |             tstate->curexc_traceback = tb;
            |                   ^~
      magicmemoryview.c: In function ‘__Pyx_CreateCodeObjectForTraceback’:
      magicmemoryview.c:2897:5: warning: ‘PyCode_New’ is deprecated [-Wdeprecated-declarations]
       2897 |     py_code = __Pyx_PyCode_New(
            |     ^~~~~~~
      In file included from /usr/include/python3.12/Python.h:74:
      /usr/include/python3.12/cpython/code.h:244:1: note: declared here
        244 | PyCode_New(
            | ^~~~~~~~~~
      magicmemoryview.c:2911:9: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion]
       2911 |         py_line,      /*int firstlineno,*/
            |         ^~~~~~~
            |         |
            |         int
      magicmemoryview.c:119:72: note: in definition of macro ‘__Pyx_PyCode_New’
        119 |           PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
            |                                                                        ^~~~~
      /usr/include/python3.12/cpython/code.h:247:45: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
        247 |         PyObject *l, PyObject *m, PyObject *n, int o, PyObject *p,
            |                                   ~~~~~~~~~~^
      magicmemoryview.c:2912:9: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion]
       2912 |         __pyx_empty_bytes  /*PyObject *lnotab*/
            |         ^~~~~~~~~~~~~~~~~
            |         |
            |         PyObject * {aka struct _object *}
      magicmemoryview.c:119:79: note: in definition of macro ‘__Pyx_PyCode_New’
        119 |           PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
            |                                                                               ^~~~
      /usr/include/python3.12/cpython/code.h:247:52: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
        247 |         PyObject *l, PyObject *m, PyObject *n, int o, PyObject *p,
            |                                                ~~~~^
      magicmemoryview.c:119:11: error: too few arguments to function ‘PyCode_New’
        119 |           PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
            |           ^~~~~~~~~~
      magicmemoryview.c:2897:15: note: in expansion of macro ‘__Pyx_PyCode_New’
       2897 |     py_code = __Pyx_PyCode_New(
            |               ^~~~~~~~~~~~~~~~
      /usr/include/python3.12/cpython/code.h:244:1: note: declared here
        244 | PyCode_New(
            | ^~~~~~~~~~
      magicmemoryview.c: In function ‘__Pyx_AddTraceback’:
      magicmemoryview.c:2943:13: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
       2943 |     py_frame->f_lineno = py_line;
            |             ^~
      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 magicmemoryview
  Building wheel for ruaumoko (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for ruaumoko (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [305 lines of output]
      /tmp/pip-build-env-qj_ywckf/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-312/ruaumoko
      copying ruaumoko/get_cmd.py -> build/lib.linux-x86_64-cpython-312/ruaumoko
      copying ruaumoko/download.py -> build/lib.linux-x86_64-cpython-312/ruaumoko
      copying ruaumoko/asciiart.py -> build/lib.linux-x86_64-cpython-312/ruaumoko
      copying ruaumoko/api.py -> build/lib.linux-x86_64-cpython-312/ruaumoko
      copying ruaumoko/manager.py -> build/lib.linux-x86_64-cpython-312/ruaumoko
      copying ruaumoko/__init__.py -> build/lib.linux-x86_64-cpython-312/ruaumoko
      copying ruaumoko/_compat.py -> build/lib.linux-x86_64-cpython-312/ruaumoko
      running build_ext
      building 'ruaumoko.dataset' extension
      creating build/temp.linux-x86_64-cpython-312/ruaumoko
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/home/user/tawhiri/venv/include -I/usr/include/python3.12 -c ruaumoko/dataset.c -o build/temp.linux-x86_64-cpython-312/ruaumoko/dataset.o
      ruaumoko/dataset.c: In function ‘__Pyx_ListComp_Append’:
      ruaumoko/dataset.c:908:23: error: lvalue required as left operand of assignment
        908 |         Py_SIZE(list) = len+1;
            |                       ^
      ruaumoko/dataset.c: In function ‘__Pyx_PyList_Append’:
      ruaumoko/dataset.c:942:23: error: lvalue required as left operand of assignment
        942 |         Py_SIZE(list) = len+1;
            |                       ^
      ruaumoko/dataset.c: In function ‘__pyx_memview_slice’:
      ruaumoko/dataset.c:8206:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
       8206 |   if (unlikely(!Py_OptimizeFlag)) {
            |   ^~
      In file included from /usr/include/python3.12/Python.h:48,
                       from ruaumoko/dataset.c:16:
      /usr/include/python3.12/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      ruaumoko/dataset.c: In function ‘__pyx_tp_dealloc_array’:
      ruaumoko/dataset.c:12980:5: error: lvalue required as increment operand
      12980 |     ++Py_REFCNT(o);
            |     ^~
      ruaumoko/dataset.c:12982:5: error: lvalue required as decrement operand
      12982 |     --Py_REFCNT(o);
            |     ^~
      ruaumoko/dataset.c: In function ‘__pyx_tp_dealloc_memoryview’:
      ruaumoko/dataset.c:13262:5: error: lvalue required as increment operand
      13262 |     ++Py_REFCNT(o);
            |     ^~
      ruaumoko/dataset.c:13264:5: error: lvalue required as decrement operand
      13264 |     --Py_REFCNT(o);
            |     ^~
      ruaumoko/dataset.c: In function ‘__pyx_tp_dealloc__memoryviewslice’:
      ruaumoko/dataset.c:13498:5: error: lvalue required as increment operand
      13498 |     ++Py_REFCNT(o);
            |     ^~
      ruaumoko/dataset.c:13500:5: error: lvalue required as decrement operand
      13500 |     --Py_REFCNT(o);
            |     ^~
      ruaumoko/dataset.c: In function ‘PyInit_dataset’:
      ruaumoko/dataset.c:14071:40: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
      14071 |   __pyx_type_8ruaumoko_7dataset_Dataset.tp_print = 0;
            |                                        ^
      ruaumoko/dataset.c:14076:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
      14076 |   __pyx_type___pyx_array.tp_print = 0;
            |                         ^
      ruaumoko/dataset.c:14079:31: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
      14079 |   __pyx_type___pyx_MemviewEnum.tp_print = 0;
            |                               ^
      ruaumoko/dataset.c:14090:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
      14090 |   __pyx_type___pyx_memoryview.tp_print = 0;
            |                              ^
      ruaumoko/dataset.c:14099:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
      14099 |   __pyx_type___pyx_memoryviewslice.tp_print = 0;
            |                                   ^
      ruaumoko/dataset.c: In function ‘__Pyx_ParseOptionalKeywords’:
      ruaumoko/dataset.c:14465:22: warning: implicit declaration of function ‘PyUnicode_GET_SIZE’; did you mean ‘PyDict_GET_SIZE’? [-Wimplicit-function-declaration]
      14465 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                      ^~~~~~~~~~~~~~~~~~
            |                      PyDict_GET_SIZE
      ruaumoko/dataset.c: In function ‘__pyx_fatalerror’:
      ruaumoko/dataset.c:15252:19: error: macro "va_start" requires 2 arguments, but only 1 given
      15252 |     va_start(vargs);
            |                   ^
      In file included from /usr/include/python3.12/bytesobject.h:10,
                       from /usr/include/python3.12/Python.h:50:
      /usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h:50: note: macro "va_start" defined here
         50 | #define va_start(v,l)   __builtin_va_start(v,l)
            |
      ruaumoko/dataset.c:15252:5: error: ‘va_start’ undeclared (first use in this function)
      15252 |     va_start(vargs);
            |     ^~~~~~~~
      ruaumoko/dataset.c:15252:5: note: each undeclared identifier is reported only once for each function it appears in
      ruaumoko/dataset.c: In function ‘__Pyx_ExceptionSave’:
      ruaumoko/dataset.c:15330:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘exc_state’?
      15330 |     *type = tstate->exc_type;
            |                     ^~~~~~~~
            |                     exc_state
      ruaumoko/dataset.c:15331:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’
      15331 |     *value = tstate->exc_value;
            |                    ^~
      ruaumoko/dataset.c:15332:17: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’
      15332 |     *tb = tstate->exc_traceback;
            |                 ^~
      ruaumoko/dataset.c: In function ‘__Pyx_ExceptionReset’:
      ruaumoko/dataset.c:15344:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘exc_state’?
      15344 |     tmp_type = tstate->exc_type;
            |                        ^~~~~~~~
            |                        exc_state
      ruaumoko/dataset.c:15345:23: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’
      15345 |     tmp_value = tstate->exc_value;
            |                       ^~
      ruaumoko/dataset.c:15346:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’
      15346 |     tmp_tb = tstate->exc_traceback;
            |                    ^~
      ruaumoko/dataset.c:15347:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘exc_state’?
      15347 |     tstate->exc_type = type;
            |             ^~~~~~~~
            |             exc_state
      ruaumoko/dataset.c:15348:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’
      15348 |     tstate->exc_value = value;
            |           ^~
      ruaumoko/dataset.c:15349:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’
      15349 |     tstate->exc_traceback = tb;
            |           ^~
      ruaumoko/dataset.c: In function ‘__Pyx_GetException’:
      ruaumoko/dataset.c:15363:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
      15363 |     local_type = tstate->curexc_type;
            |                        ^~
      ruaumoko/dataset.c:15364:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
      15364 |     local_value = tstate->curexc_value;
            |                         ^~
      ruaumoko/dataset.c:15365:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15365 |     local_tb = tstate->curexc_traceback;
            |                      ^~
      ruaumoko/dataset.c:15366:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
      15366 |     tstate->curexc_type = 0;
            |           ^~
      ruaumoko/dataset.c:15367:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
      15367 |     tstate->curexc_value = 0;
            |           ^~
      ruaumoko/dataset.c:15368:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15368 |     tstate->curexc_traceback = 0;
            |           ^~
      ruaumoko/dataset.c:15374:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
      15374 |     if (unlikely(tstate->curexc_type))
            |                        ^~
      ruaumoko/dataset.c:399:43: note: in definition of macro ‘unlikely’
        399 |   #define unlikely(x) __builtin_expect(!!(x), 0)
            |                                           ^
      ruaumoko/dataset.c:15392:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘exc_state’?
      15392 |     tmp_type = tstate->exc_type;
            |                        ^~~~~~~~
            |                        exc_state
      ruaumoko/dataset.c:15393:23: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’
      15393 |     tmp_value = tstate->exc_value;
            |                       ^~
      ruaumoko/dataset.c:15394:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’
      15394 |     tmp_tb = tstate->exc_traceback;
            |                    ^~
      ruaumoko/dataset.c:15395:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘exc_state’?
      15395 |     tstate->exc_type = local_type;
            |             ^~~~~~~~
            |             exc_state
      ruaumoko/dataset.c:15396:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’
      15396 |     tstate->exc_value = local_value;
            |           ^~
      ruaumoko/dataset.c:15397:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’
      15397 |     tstate->exc_traceback = local_tb;
            |           ^~
      ruaumoko/dataset.c: In function ‘__Pyx_ErrRestore’:
      ruaumoko/dataset.c:15419:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
      15419 |     tmp_type = tstate->curexc_type;
            |                      ^~
      ruaumoko/dataset.c:15420:23: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
      15420 |     tmp_value = tstate->curexc_value;
            |                       ^~
      ruaumoko/dataset.c:15421:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15421 |     tmp_tb = tstate->curexc_traceback;
            |                    ^~
      ruaumoko/dataset.c:15422:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
      15422 |     tstate->curexc_type = type;
            |           ^~
      ruaumoko/dataset.c:15423:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
      15423 |     tstate->curexc_value = value;
            |           ^~
      ruaumoko/dataset.c:15424:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15424 |     tstate->curexc_traceback = tb;
            |           ^~
      ruaumoko/dataset.c: In function ‘__Pyx_ErrFetch’:
      ruaumoko/dataset.c:15435:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
      15435 |     *type = tstate->curexc_type;
            |                   ^~
      ruaumoko/dataset.c:15436:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
      15436 |     *value = tstate->curexc_value;
            |                    ^~
      ruaumoko/dataset.c:15437:17: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15437 |     *tb = tstate->curexc_traceback;
            |                 ^~
      ruaumoko/dataset.c:15438:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_type’
      15438 |     tstate->curexc_type = 0;
            |           ^~
      ruaumoko/dataset.c:15439:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_value’
      15439 |     tstate->curexc_value = 0;
            |           ^~
      ruaumoko/dataset.c:15440:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15440 |     tstate->curexc_traceback = 0;
            |           ^~
      ruaumoko/dataset.c: In function ‘__Pyx_Raise’:
      ruaumoko/dataset.c:15687:34: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15687 |         PyObject* tmp_tb = tstate->curexc_traceback;
            |                                  ^~
      ruaumoko/dataset.c:15690:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
      15690 |             tstate->curexc_traceback = tb;
            |                   ^~
      ruaumoko/dataset.c: In function ‘__Pyx_PyUnicode_Equals’:
      ruaumoko/dataset.c:86:51: warning: implicit declaration of function ‘_PyUnicode_Ready’; did you mean ‘PyUnicode_READY’? [-Wimplicit-function-declaration]
         86 |                                               0 : _PyUnicode_Ready((PyObject *)(op)))
            |                                                   ^~~~~~~~~~~~~~~~
      ruaumoko/dataset.c:399:43: note: in definition of macro ‘unlikely’
        399 |   #define unlikely(x) __builtin_expect(!!(x), 0)
            |                                           ^
      ruaumoko/dataset.c:15797:22: note: in expansion of macro ‘__Pyx_PyUnicode_READY’
      15797 |         if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            |                      ^~~~~~~~~~~~~~~~~~~~~
      ruaumoko/dataset.c: In function ‘__Pyx_decode_c_string’:
      ruaumoko/dataset.c:15875:16: warning: implicit declaration of function ‘PyUnicode_FromUnicode’; did you mean ‘PyInt_FromUnicode’? [-Wimplicit-function-declaration]
      15875 |         return PyUnicode_FromUnicode(NULL, 0);
            |                ^~~~~~~~~~~~~~~~~~~~~
            |                PyInt_FromUnicode
      ruaumoko/dataset.c:15875:16: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
      15875 |         return PyUnicode_FromUnicode(NULL, 0);
            |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ruaumoko/dataset.c: In function ‘__Pyx_ExceptionSwap’:
      ruaumoko/dataset.c:15915:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘exc_state’?
      15915 |     tmp_type = tstate->exc_type;
            |                        ^~~~~~~~
            |                        exc_state
      ruaumoko/dataset.c:15916:23: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’
      15916 |     tmp_value = tstate->exc_value;
            |                       ^~
      ruaumoko/dataset.c:15917:20: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’
      15917 |     tmp_tb = tstate->exc_traceback;
            |                    ^~
      ruaumoko/dataset.c:15918:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘exc_state’?
      15918 |     tstate->exc_type = *type;
            |             ^~~~~~~~
            |             exc_state
      ruaumoko/dataset.c:15919:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’
      15919 |     tstate->exc_value = *value;
            |           ^~
      ruaumoko/dataset.c:15920:11: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’
      15920 |     tstate->exc_traceback = *tb;
            |           ^~
      ruaumoko/dataset.c: In function ‘__Pyx_CreateCodeObjectForTraceback’:
      ruaumoko/dataset.c:16081:5: warning: ‘PyCode_New’ is deprecated [-Wdeprecated-declarations]
      16081 |     py_code = __Pyx_PyCode_New(
            |     ^~~~~~~
      In file included from /usr/include/python3.12/Python.h:74:
      /usr/include/python3.12/cpython/code.h:244:1: note: declared here
        244 | PyCode_New(
            | ^~~~~~~~~~
      ruaumoko/dataset.c:16095:9: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion]
      16095 |         py_line,
            |         ^~~~~~~
            |         |
            |         int
      ruaumoko/dataset.c:70:72: note: in definition of macro ‘__Pyx_PyCode_New’
         70 |           PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
            |                                                                        ^~~~~
      /usr/include/python3.12/cpython/code.h:247:45: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
        247 |         PyObject *l, PyObject *m, PyObject *n, int o, PyObject *p,
            |                                   ~~~~~~~~~~^
      ruaumoko/dataset.c:16096:9: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion]
      16096 |         __pyx_empty_bytes  /*PyObject *lnotab*/
            |         ^~~~~~~~~~~~~~~~~
            |         |
            |         PyObject * {aka struct _object *}
      ruaumoko/dataset.c:70:79: note: in definition of macro ‘__Pyx_PyCode_New’
         70 |           PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
            |                                                                               ^~~~
      /usr/include/python3.12/cpython/code.h:247:52: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
        247 |         PyObject *l, PyObject *m, PyObject *n, int o, PyObject *p,
            |                                                ~~~~^
      ruaumoko/dataset.c:70:11: error: too few arguments to function ‘PyCode_New’
         70 |           PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
            |           ^~~~~~~~~~
      ruaumoko/dataset.c:16081:15: note: in expansion of macro ‘__Pyx_PyCode_New’
      16081 |     py_code = __Pyx_PyCode_New(
            |               ^~~~~~~~~~~~~~~~
      /usr/include/python3.12/cpython/code.h:244:1: note: declared here
        244 | PyCode_New(
            | ^~~~~~~~~~
      ruaumoko/dataset.c: In function ‘__Pyx_AddTraceback’:
      ruaumoko/dataset.c:16124:13: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
      16124 |     py_frame->f_lineno = py_line;
            |             ^~
      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 ruaumoko
Successfully built Tawhiri
Failed to build magicmemoryview ruaumoko
ERROR: Failed to build installable wheels for some pyproject.toml based projects (magicmemoryview, ruaumoko)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions