benfred / py-spy

Sampling profiler for Python programs
MIT License
12.87k stars 431 forks source link

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

Closed OM152 closed 3 weeks ago

OM152 commented 1 month ago

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.

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

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

Can you figure out this problem? Thanks

zanieb commented 1 month ago

Is this a duplicate of https://github.com/benfred/py-spy/issues/675

benfred commented 3 weeks ago

This should be fixed by https://github.com/benfred/py-spy/pull/718

benfred commented 3 weeks ago

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