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

"No python processes found" for Python 3.10 on Windows #498

Closed
henriquegemignani opened this issue May 19, 2022 · 10 comments
Closed

"No python processes found" for Python 3.10 on Windows #498

henriquegemignani opened this issue May 19, 2022 · 10 comments

Comments

@henriquegemignani
Copy link

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
@janikarki
Copy link

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

@windelbouwman
Copy link

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

@fleimgruber
Copy link

Also seeing this with Python 3.10.11

@rambo
Copy link

rambo commented Apr 17, 2024

I guess #216 is relevant as well. I'm seeing same issue as #216 (comment) on python 3.11.9 in virtualenv.

@tmct
Copy link

tmct commented Aug 19, 2024

I'm afraid we still see the "No python processes" failure when using --subprocesses, using Python 3.10 from a virtual environment.

@sam-s
Copy link

sam-s commented Oct 21, 2024

on windows 10:

$ py-spy.exe dump --subprocesses --pid 20588
Error: Failed to find python version from target process
$ python --version
Python 3.12.7
$ py-spy.exe --version
py-spy 0.3.14

should I file a separate report?

@zanieb
Copy link
Contributor

zanieb commented Oct 21, 2024

I don't think the 3.12 support has been released, it was just recently merged.

@benfred
Copy link
Owner

benfred commented Nov 2, 2024

This should be fixed in the lastest release (0.4.0) - by #543 and #718.

Can you try this out and re-open if the latest version doesn't fix for you?

@benfred benfred closed this as completed Nov 2, 2024
@tim-stephenson
Copy link

tim-stephenson commented Nov 21, 2024

I am on py-spy 0.4.0 and python 3.12 and still getting "Failed to find python version from target process" without the "-s" flag and "No python processes found in process <pid> or any of its subprocesses".

@tim-stephenson
Copy link

I am on py-spy 0.4.0 and python 3.12 and still getting "Failed to find python version from target process" without the "-s" flag and "No python processes found in process or any of its subprocesses".

Looking into this more, I would guess this is due to other python 3.12 issues, as things seem to be working fine on python 3.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants