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

[Bug] py-spy "Error: Unsupported version of Python: 3.12.0" #2889

Open
1 of 2 tasks
hongbo-miao opened this issue Feb 4, 2025 · 0 comments
Open
1 of 2 tasks

[Bug] py-spy "Error: Unsupported version of Python: 3.12.0" #2889

hongbo-miao opened this issue Feb 4, 2025 · 0 comments
Labels
bug Something isn't working triage

Comments

@hongbo-miao
Copy link

hongbo-miao commented Feb 4, 2025

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

I am trying to set up

  • CPU Flame Graph
  • Stack Trace

Image

Based on https://docs.ray.io/en/latest/cluster/kubernetes/k8s-ecosystem/pyspy.html, I added securityContext section:

image:
  repository: docker.io/rayproject/ray
  tag: 2.40.0-py312-cpu
head:
  serviceAccountName: hm-ray-cluster-service-account
  securityContext:
    capabilities:
      add:
        - SYS_PTRACE
worker:
  replicas: 10
  minReplicas: 2
  maxReplicas: 100
  serviceAccountName: hm-ray-cluster-service-account
  securityContext:
    capabilities:
      add:
        - SYS_PTRACE

Now when I open those two links, I got error

CPU Flame Graph:

Failed to execute `['sudo', '-n', '/home/ray/anaconda3/bin/py-spy', 'record', '-o', PosixPath('/tmp/ray/session_2025-02-03_22-57-42_931597_1/logs/flamegraph_129_cpu_profiling.svg'), '-p', '129', '-d', '5', '-f', 'flamegraph']`.

=== stderr ===
Error: Unsupported version of Python: 3.12.0


=== stdout ===

Stack Trace:

Failed to execute `['sudo', '-n', '/home/ray/anaconda3/bin/py-spy', 'dump', '-p', '129']`.

=== stderr ===
Error: Unsupported version of Python: 3.12.0


=== stdout ===

Anything else

I did see py-spy side supported Python 3.12 and 3.13 by grafana/pyroscope-rs#181 which may help.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@hongbo-miao hongbo-miao added bug Something isn't working triage labels Feb 4, 2025
@hongbo-miao hongbo-miao changed the title [Bug] Error: Unsupported version of Python: 3.12.0 [Bug] py-spy "Error: Unsupported version of Python: 3.12.0" Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant