Errors Encountered:
The compilation of the inv_cdf.c file fails due to deprecated and removed functions in Python 3.13.
Specific errors include:
Usage of the PyCode_New function, which is deprecated and requires 17 arguments, but the code only provides 15.
The use of PyUnicode_GET_SIZE, which is no longer available in the current Python API.
Multiple errors involving the struct _ts fields (curexc_type, curexc_value, curexc_traceback) that are no longer part of the public API.
I've tried downloading the toolkit on 3 different Macs and I get the same error. I was wondering if anyone else has ran into this issue and if they were able to get past it?
idr/inv_cdf.c:4946:22: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
idr/inv_cdf.c:4946:22: note: did you mean 'PyDict_GET_SIZE'?
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:55:26: note: 'PyDict_GET_SIZE' declared here
static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) {
^
idr/inv_cdf.c:4962:26: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
idr/inv_cdf.c:5578:24: error: no member named 'curexc_type' in 'struct _ts'
tmp_type = tstate->curexc_type;
~~~~~~ ^
idr/inv_cdf.c:5579:25: error: no member named 'curexc_value' in 'struct _ts'
tmp_value = tstate->curexc_value;
~~~~~~ ^
idr/inv_cdf.c:5580:22: error: no member named 'curexc_traceback' in 'struct _ts'
tmp_tb = tstate->curexc_traceback;
~~~~~~ ^
idr/inv_cdf.c:5581:13: error: no member named 'curexc_type' in 'struct _ts'
tstate->curexc_type = type;
~~~~~~ ^
idr/inv_cdf.c:5582:13: error: no member named 'curexc_value' in 'struct _ts'
tstate->curexc_value = value;
~~~~~~ ^
idr/inv_cdf.c:5583:13: error: no member named 'curexc_traceback' in 'struct _ts'
tstate->curexc_traceback = tb;
~~~~~~ ^
idr/inv_cdf.c:5594:21: error: no member named 'curexc_type' in 'struct _ts'
*type = tstate->curexc_type;
~~~~~~ ^
idr/inv_cdf.c:5595:22: error: no member named 'curexc_value' in 'struct _ts'
*value = tstate->curexc_value;
~~~~~~ ^
idr/inv_cdf.c:5596:19: error: no member named 'curexc_traceback' in 'struct _ts'
*tb = tstate->curexc_traceback;
~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
Errors Encountered:
The compilation of the inv_cdf.c file fails due to deprecated and removed functions in Python 3.13.
Specific errors include:
Usage of the PyCode_New function, which is deprecated and requires 17 arguments, but the code only provides 15.
The use of PyUnicode_GET_SIZE, which is no longer available in the current Python API.
Multiple errors involving the struct _ts fields (curexc_type, curexc_value, curexc_traceback) that are no longer part of the public API.
I've tried downloading the toolkit on 3 different Macs and I get the same error. I was wondering if anyone else has ran into this issue and if they were able to get past it?
idr/inv_cdf.c:4946:22: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
idr/inv_cdf.c:4946:22: note: did you mean 'PyDict_GET_SIZE'?
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:55:26: note: 'PyDict_GET_SIZE' declared here
static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) {
^
idr/inv_cdf.c:4962:26: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
idr/inv_cdf.c:5578:24: error: no member named 'curexc_type' in 'struct _ts'
tmp_type = tstate->curexc_type;
~~~~~~ ^
idr/inv_cdf.c:5579:25: error: no member named 'curexc_value' in 'struct _ts'
tmp_value = tstate->curexc_value;
~~~~~~ ^
idr/inv_cdf.c:5580:22: error: no member named 'curexc_traceback' in 'struct _ts'
tmp_tb = tstate->curexc_traceback;
~~~~~~ ^
idr/inv_cdf.c:5581:13: error: no member named 'curexc_type' in 'struct _ts'
tstate->curexc_type = type;
~~~~~~ ^
idr/inv_cdf.c:5582:13: error: no member named 'curexc_value' in 'struct _ts'
tstate->curexc_value = value;
~~~~~~ ^
idr/inv_cdf.c:5583:13: error: no member named 'curexc_traceback' in 'struct _ts'
tstate->curexc_traceback = tb;
~~~~~~ ^
idr/inv_cdf.c:5594:21: error: no member named 'curexc_type' in 'struct _ts'
*type = tstate->curexc_type;
~~~~~~ ^
idr/inv_cdf.c:5595:22: error: no member named 'curexc_value' in 'struct _ts'
*value = tstate->curexc_value;
~~~~~~ ^
idr/inv_cdf.c:5596:19: error: no member named 'curexc_traceback' in 'struct _ts'
*tb = tstate->curexc_traceback;
~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1