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

Doesn't work with Python3.12 #3287

Closed
fnmut opened this issue May 8, 2024 · 5 comments
Closed

Doesn't work with Python3.12 #3287

fnmut opened this issue May 8, 2024 · 5 comments

Comments

@fnmut
Copy link

fnmut commented May 8, 2024

Describe the bug

I don't believe this is working with Python3.12, is that right?

To Reproduce

The example referenced here uses Python 3.11, and it works with 3.11

When I use Python 3.12 I get stuck on Pyroscope::Session > Creating Session

Expected behavior

Profiles get sent to a local server using python 3.12

Environment

  • Infrastructure: [e.g., Kubernetes, bare-metal, laptop]
  • Deployment tool: [e.g., helm, jsonnet]

Additional Context

Any plans to support Python 3.12? Is there something I can do to get it working?

@korniltsev
Copy link
Collaborator

There is pyspy issue benfred/py-spy#633

In the meantime, you can try using grafana-agent / alloy . They can profile python apps with pyroscope.ebpf component

@kwongtn
Copy link

kwongtn commented Oct 15, 2024

Python 3.12 should be supported now

@we684123
Copy link

we684123 commented Nov 2, 2024

py-spy Releases v0.4.0
Python 3.12、3.13 Support

@mtralka
Copy link

mtralka commented Nov 20, 2024

py-spy=0.4.0 and pyroscope-io=0.8.7continue to be stuck on Pyroscope::Session > Creating Session for me using the toy example on py3.12

I can confirm py-spy is working as expected on py3.12 without Pyroscope.

EDIT:
Looks like pyroscope is still using an older version of PySpy. PR - grafana/pyroscope-rs#181 - appears to solve this issue. PR merged but cannot be deployed due to broken CICD

@korniltsev
Copy link
Collaborator

Fixed by grafana/pyroscope-rs#181 in the pip package v0.8.8

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