benfred / py-spy

Sampling profiler for Python programs
MIT License
12.64k stars 422 forks source link

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

Open OM152 opened 1 week ago

OM152 commented 1 week 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 week ago

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