py-spy icon indicating copy to clipboard operation
py-spy copied to clipboard

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

Open anicecoffee opened this issue 1 year ago • 2 comments

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

anicecoffee avatar May 07 '24 09:05 anicecoffee

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

Archer-Code avatar May 08 '24 09:05 Archer-Code

I am experiencing the same issue and haven't found a solution yet. @benfred, could you please provide your input?

Gazalkhan avatar Jul 12 '24 07:07 Gazalkhan

@anicecoffee @Gazalkhan I think this should be fixed by https://github.com/benfred/py-spy/pull/718 - can you test it out if you get a chance ? (you can download prebuilt wheels from the 'wheels' artifacts here https://github.com/benfred/py-spy/actions/runs/11619999861?pr=718#artifacts )

benfred avatar Oct 31 '24 21:10 benfred

I think this should be fixed in the 0.4 release. Can you try it out and let me know?

If this is still not working please re-open the issue

benfred avatar Nov 01 '24 22:11 benfred

I think this should be fixed in the 0.4 release. Can you try it out and let me know?

If this is still not working please re-open the issue it is not ok image

Archer-Code avatar Nov 07 '24 02:11 Archer-Code