benfred / py-spy

Sampling profiler for Python programs
MIT License
12.13k stars 401 forks source link

Error: Failed to find a python interpreter in the .data section #663

Open anicecoffee opened 1 month ago

anicecoffee commented 1 month ago

I'm using the latest py-spy version 0.3.14 and I'm still getting this error for the following commands

py-spy top -- python SampleCode.py

py-spy record -o sample-profile.svg --format flamegraph -- python SampleCode.py

I referred to the previous issue on this which was resolved but I couldn't troubleshoot for my system. I reverted to previous versions of py-spy but still ran into similar issues with the error now becoming

Error: Failed to find python version from target process

Please help

Archer-Code commented 1 month ago

i have same question, I modified the source code and recompiled a new one. #662 image