You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Building csp on Python 3.12 fails due to accessing CPython internals that have been removed.
To Reproduce
Steps to reproduce the behavior:
Build csp with a Python 3.12 interpreter
Wait until it gets to building csp itself.
Fails with the following error:
/Users/goldbaum/Documents/csp/cpp/csp/python/PyNode.cpp: In member function 'void csp::python::PyNode::init(csp::python::PyObjectPtr, csp::python::PyObjectPtr)':
/Users/goldbaum/Documents/csp/cpp/csp/python/PyNode.cpp:64:55: error: 'struct PyGenObject' has no member named 'gi_code'
64 | PyCodeObject * code = ( PyCodeObject * ) pygen -> gi_code;
| ^~~~~~~
…o changes to the low level bytecode interpreter, related to how unbound variables are referenced ( commented out the test for now )
Signed-off-by: Rob Ambalu <robert.ambalu@point72.com>
* resolve#13 - Python 3.12 build support.
* python 3.12 - fix unbound local issue - changed how ts inputs to PyNode are reset to null due to new LOAD_FAST vs LOAD_FAST_CHECK opcodes in Python 3.12. Inject DELETE opcodes into bytecode rather than setting directly to null in c++
* cibuildwheel 2.11.2 -> 2.16.5
Signed-off-by: Rob Ambalu <robert.ambalu@point72.com>
Carreau
pushed a commit
to Carreau/csp
that referenced
this issue
May 13, 2024
* resolvePoint72#13 - Python 3.12 build support.
* python 3.12 - fix unbound local issue - changed how ts inputs to PyNode are reset to null due to new LOAD_FAST vs LOAD_FAST_CHECK opcodes in Python 3.12. Inject DELETE opcodes into bytecode rather than setting directly to null in c++
* cibuildwheel 2.11.2 -> 2.16.5
Signed-off-by: Rob Ambalu <robert.ambalu@point72.com>
Describe the bug
Building
csp
on Python 3.12 fails due to accessing CPython internals that have been removed.To Reproduce
Steps to reproduce the behavior:
csp
with a Python 3.12 interpretercsp
itself.See https://github.com/python/cpython/pull/100749/files for the relevant change in CPython
Expected behavior
Build without error
Desktop (please complete the following information):
csp
main branchThe text was updated successfully, but these errors were encountered: