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 python version from target process #550

Open
kDaeMN opened this issue Feb 4, 2023 · 5 comments
Open

Error: Failed to find python version from target process #550

kDaeMN opened this issue Feb 4, 2023 · 5 comments

Comments

@kDaeMN
Copy link

kDaeMN commented Feb 4, 2023

Getting below stack when trying to use py-spy on

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

Python 2.7.18

py-spy 0.3.14

INFO 2023-02-04T14:36:42Z: py_spy::python_spy: Found libpython binary @ /opt/XX/YYY/lib/libpython2.7.so.1.0
INFO 2023-02-04T14:36:42Z: py_spy::python_spy: Getting version from python binary BSS
INFO 2023-02-04T14:36:42Z: py_spy::python_spy: Failed to get version from BSS section: failed to find version string
INFO 2023-02-04T14:36:42Z: py_spy::python_spy: Getting version from libpython BSS
INFO 2023-02-04T14:36:42Z: py_spy::python_spy: Failed to get version from libpython BSS section: failed to find version string
INFO 2023-02-04T14:36:42Z: py_spy::python_spy: Trying to get version from path: /opt/XX/YYY/lib/EXECUTABLENAME
Error: Failed to find python version from target process

@gobater
Copy link

gobater commented Feb 8, 2023

There is a similar bug: #550

This problem also occurs on windows when calling a module entry point (executable) instead of directly calling the python interpreter

@itamarst
Copy link

I am seeing this on a bunch of module entry point executables on Python 3.10 on Windows, as above. Austin does manage to do it, so I assume it's possible.

@ses4j
Copy link

ses4j commented May 30, 2023

Be aware --subprocesses may help if you're using a venv, but doesn't help with 3.10+

@fleimgruber
Copy link

@gobater I assume you meant to link to this similar bug: #498?

@gobater
Copy link

gobater commented Dec 15, 2023

@gobater I assume you meant to link to this similar bug: #498?

Yes, you are correct. I mixed it up while c&p the link

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

5 participants