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

"No python processes found" for Python 3.10 on Windows

Open henriquegemignani opened this issue 3 years ago • 5 comments

The following command: py-spy top -s -- py -3.10 script.py Fails with Error: No python processes found in process 3872 or any of its subprocesses, while the script itself runs successfully. If I instead run py-spy top -s -- py -3.9 script.py, it works perfectly.

Environment:

  • Python 3.10.4
  • Python 3.9.12
  • py-spy 0.3.12
  • Windows 11, build 10.0.22000

henriquegemignani avatar May 19 '22 17:05 henriquegemignani

I'm also getting one of these, depending on how I try to run.

$ py-spy record -p <pid> -o <file>
Error: Failed to find a python interpreter in the .data section
$ py-spy record -s -p <pid> -o <file>
Error: No python processes found in process <pid> or any of its subprocesses
$ py-spy record -o <file> -- python main.py
Error: Failed to find python version from target process
$ py-spy record -s -o <file> -- python main.py
[ python program runs, but no py-spy output file is written upon interrupt ]
  • Python 3.10.0 - 3.10.5
  • py-spy 0.3.12
  • Windows 10

janikarki avatar Jun 08 '22 10:06 janikarki

I got a similar error:

 (.venv) C:\project>py-spy top -- python gui.py
Error: Failed to find python version from target process
  • Python 3.10.6
  • py-spy 0.3.14
  • Windows 10

windelbouwman avatar Sep 30 '22 11:09 windelbouwman

Also seeing this with Python 3.10.11

fleimgruber avatar Nov 08 '23 11:11 fleimgruber

I guess https://github.com/benfred/py-spy/issues/216 is relevant as well. I'm seeing same issue as https://github.com/benfred/py-spy/issues/216#issuecomment-1722555568 on python 3.11.9 in virtualenv.

rambo avatar Apr 17 '24 14:04 rambo