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

Unsupported version of Python: 3.12.0 #168

Closed
Battlesheepu opened this issue Jun 22, 2024 · 5 comments · Fixed by #181
Closed

Unsupported version of Python: 3.12.0 #168

Battlesheepu opened this issue Jun 22, 2024 · 5 comments · Fixed by #181
Labels
bug Something isn't working

Comments

@Battlesheepu
Copy link

Battlesheepu commented Jun 22, 2024

Describe the bug you encountered:

I've been trying to use the pyroscope-io Python library to send data to my Pyroscope instance. The problem is, based on the logs, the Python 3.12 version is not supported.

The debug logs say it explicitly:

 2024-06-22T17:36:41.594Z INFO  py_spy::python_spy > Getting version from python binary BSS
 2024-06-22T17:36:41.594Z INFO  py_spy::python_spy > Failed to get version from BSS section: failed to find version string
 2024-06-22T17:36:41.594Z INFO  py_spy::python_spy > Trying to get version from path: /usr/bin/python3.12
 2024-06-22T17:36:41.594Z INFO  py_spy::python_spy > python version 3.12.0 detected
 2024-06-22T17:36:41.594Z INFO  py_spy::python_spy > Failed to get interp_head from symbols, scanning BSS section from main binary
 2024-06-22T17:36:41.594Z INFO  py_spy::python_spy > Failed to connect to process, retrying. Error: Unsupported version of Python: 3.12.0
 2024-06-22T17:36:41.614Z INFO  py_spy::python_spy > Got virtual memory maps from pid 20864:

What did you expect to happen instead?

I expected the library to work as it did with the older Python versions.

How did you install pyroscope-rs?

Pyroscope installed via pip install pyroscope-io

$ pip freeze | grep -i pyroscope                                                                                                                                 INT|INT ✘  pyroscope   19:36:42  
pyroscope-io==0.8.7

I've encountered the problems on both Ubuntu 22.04 and 24.04, both with a virtual env created from the system-wide Python and in a Python installation built from source.

Additional words

Huge thanks for the help in advance!

@Battlesheepu Battlesheepu added the bug Something isn't working label Jun 22, 2024
@Battlesheepu
Copy link
Author

In terms of py-spy itself, there's already a few issues for it:

So I understand the problem is on the py-spy side, but could we actually track it here to make sure the py-spy version gets bumped as soon as it supports Python 3.12?

@korniltsev
Copy link
Collaborator

another option could be to not use pyspy for our pip package. pyspy was designed to be used out of process and pyroscope pip package is inprocess so we don't have to solve some of the issues. This could also help solving performance issues.

@pickfire
Copy link

Or maybe we can use austin as an alternative to py-spy? https://github.com/P403n1x87/austin

@geertn
Copy link

geertn commented Oct 22, 2024

3.12 support for py-spy merged in: benfred/py-spy#642

@pschwartz
Copy link

Support for 3.12 and 3.13 has merged in benfred/py-spy#642 and v0.4.0 has been released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants