pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-torch fails with Python 3.14
Hi,
When Python 3.14 is installed and is used, math/py-torch fails with:
[ 95%] Building C object
caffe2/torch/CMakeFiles/torch_python.dir/csrc/dynamo/cpython_defs.c.o
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/cpython_defs.c:25:2:
error: #error "Please ensure that the functions below still match the
CPython implementation for 3.14"
25 | #error "Please ensure that the functions below still match the
CPython implementation for 3.14"
| ^~~~~
In file included from
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/cpython_defs.c:3:
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/cpython_defs.c:
In function 'THP_PyFrame_MakeAndSetFrameObject':
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/cpython_defs.c:102:16:
error: invalid use of incomplete typedef '_PyInterpreterFrame' {aka
'struct _PyInterpreterFrame'}
102 | CHECK(frame->frame_obj == NULL);
| ^~
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/debug_macros.h:18:39:
note: in definition of macro 'unlikely'
18 | #define unlikely(x) __builtin_expect((x), 0)
| ^
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/cpython_defs.c:102:5:
note: in expansion of macro 'CHEC'
102 | CHECK(frame->frame_obj == NULL);
| ^~~~~
In file included from
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/cpython_defs.c:2:
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/dynamo/cpython_includes.h:34:38:
error: invalid use of incomplete typedef '_PyInterpreterFrame' {aka
'struct _PyInterpreterFrame'}
34 | #define F_CODE(x) ((PyCodeObject*)(x)->f_executable)
| ^~
and so on.
Is there a simple fix, or should this be set to python <= 3.13?
John
Home |
Main Index |
Thread Index |
Old Index