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

Using py-spy with python3.13

Open gdagitrep opened this issue 9 months ago • 1 comments

First of all, thanks for creating this tool. It has been really helpful; my Frankenstein application made using Qt was freezing a lot; using py-spy to find out causes and debugging them one by one.

Just one issue, I had to migrate to python3.11 to make it work; doesn't work on python 3.13 on macos 14.6- slicon (although the latest version mentions "support added"), I was getting:

Error: Failed to open process - check if it is running.
Reason: Operation timed out (os error 60)

(I had a reason to make the application use python3.13)

gdagitrep avatar Mar 28 '25 16:03 gdagitrep

I'm not sure it's related to Python 3.13. I'm using Python 3.12 on my macos Apple M3 15.3.2, and got the same problem.

Edit: Actually, there's already documentation about this : https://github.com/benfred/py-spy/#why-am-i-having-issues-profiling-usrbinpython-on-osx

This resolved my issue.

sorasful avatar Apr 01 '25 19:04 sorasful