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

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

Closed
OM152 opened this issue Oct 9, 2024 · 3 comments
Closed

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

OM152 opened this issue Oct 9, 2024 · 3 comments

Comments

@OM152
Copy link

OM152 commented Oct 9, 2024

  • Windows 11
  • Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
  • py-spy==0.3.14
  • PyCharm 2024.1 (Community Edition) Build #PC-241.14494.241, built on March 28, 2024 Runtime version: 17.0.10+8-b1207.12 amd64

Hi @benfred,
I'm trying to run py-spy.

  1. Run my script
(.venv) PS W:\PycharmProjects\production_counters_master_2> W:\PycharmProjects\production_counters_master_2\.venv\Scripts\python.exe -m run_prod_counter

or
(.venv) PS W:\PycharmProjects\production_counters_master_2> python run_prod_counter.py
Script is running.

  1. then I run
    py-spy record -o output.svg --pid 7156
    or
    py-spy top --pid 7156

  2. I get an error
    'Error: Failed to find a python interpreter in the .data section'

Can you figure out this problem? Thanks

@zanieb
Copy link
Contributor

zanieb commented Oct 9, 2024

Is this a duplicate of #675

@benfred benfred mentioned this issue Oct 30, 2024
4 tasks
@benfred
Copy link
Owner

benfred commented Oct 31, 2024

This should be fixed by #718

@benfred
Copy link
Owner

benfred commented Nov 1, 2024

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 benfred closed this as completed Nov 1, 2024
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

3 participants