error: ‘PyFrameObject {aka struct _frame}’ has no member named ‘f_lasti’ #51074
Labels
module: build
Build system issues
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
/opt/Vi/pytorch/torch/csrc/jit/python/python_tracer.cpp: In function ‘std::vectortorch::jit::StackEntry torch::jit::tracer::_pythonCallstack()’:
/opt/Vi/pytorch/torch/csrc/jit/python/python_tracer.cpp:32:58: error: ‘PyFrameObject {aka struct _frame}’ has no member named ‘f_lasti’
size_t line = PyCode_Addr2Line(frame->f_code, frame->f_lasti);
^~~~~~~
/opt/Vi/pytorch/torch/csrc/jit/python/python_tracer.cpp:32:19: error: ‘PyCode_Addr2Line’ was not declared in this scope
size_t line = PyCode_Addr2Line(frame->f_code, frame->f_lasti);
^~~~~~~~~~~~~~~~
/opt/Vi/pytorch/torch/csrc/jit/python/python_tracer.cpp:32:19: note: suggested alternative: ‘PyFile_GetLine’
size_t line = PyCode_Addr2Line(frame->f_code, frame->f_lasti);
^~~~~~~~~~~~~~~~
PyFile_GetLine
/opt/Vi/pytorch/torch/csrc/jit/python/python_tracer.cpp:38:20: error: ‘PyFrameObject {aka struct _frame}’ has no member named ‘f_back’
frame = frame->f_back;
^~~~~~
caffe2/torch/CMakeFiles/torch_python.dir/build.make:835: recipe for target 'caffe2/torch/CMakeFiles/torch_python.dir/csrc/jit/python/python_tracer.cpp.o' failed
cc @malfet @seemethere @walterddr @gmagogsfm
The text was updated successfully, but these errors were encountered: