Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘PyFrameObject {aka struct _frame}’ has no member named ‘f_lasti’ #51074

Open
3826546 opened this issue Jan 26, 2021 · 1 comment
Labels
module: build Build system issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@3826546
Copy link

3826546 commented Jan 26, 2021

/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

@heitorschueroff heitorschueroff added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jan 26, 2021
@github-actions github-actions bot added this to Need triage in JIT Triage Jan 26, 2021
@gmagogsfm
Copy link
Contributor

Could you provide some instructions to reproduce this issue?

Also, this seems build related, removing jit label.

@gmagogsfm gmagogsfm removed the oncall: jit Add this issue/PR to JIT oncall triage queue label Feb 2, 2021
@gmagogsfm gmagogsfm removed this from Need triage in JIT Triage Feb 2, 2021
@H-Huang H-Huang added module: build Build system issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: build Build system issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

4 participants