GithubHelp home page GithubHelp logo

Python 3.12 not supported about py-spy HOT 4 OPEN

nicolargo avatar nicolargo commented on September 28, 2024 10
Python 3.12 not supported

from py-spy.

Comments (4)

kakkoyun avatar kakkoyun commented on September 28, 2024 1

Duplicate of #633

from py-spy.

potoo0 avatar potoo0 commented on September 28, 2024

Additional debugging info (RUST_LOG=info py-spy record --pid 1182335)

[2024-04-29T02:08:16.589266775Z INFO  py_spy::config] Command line args: ArgMatches { args: {}, subcommand: Some(SubCommand { id: [hash: FA6893386E553029], name: "record", matches: ArgMatches { args: {[hash: CD5160AB4406C427]: MatchedArg { occurs: 1, source: Some(CommandLine), indices: [2], type_id: Some(TypeId { t: 15469221632486072992 }), vals: [[AnyValue { inner: TypeId { t: 15469221632486072992 } }]], raw_vals: [["1182335"]], ignore_case: false }, [hash: 66D7DFD73E3FE4B7]: MatchedArg { occurs: 0, source: Some(DefaultValue), indices: [3], type_id: Some(TypeId { t: 15469221632486072992 }), vals: [[AnyValue { inner: TypeId { t: 15469221632486072992 } }]], raw_vals: [["flamegraph"]], ignore_case: true }, [hash: BD514D8BE9BFDED6]: MatchedArg { occurs: 0, source: Some(DefaultValue), indices: [4], type_id: Some(TypeId { t: 15469221632486072992 }), vals: [[AnyValue { inner: TypeId { t: 15469221632486072992 } }]], raw_vals: [["unlimited"]], ignore_case: false }, [hash: AAFAF59EB7E2AC8]: MatchedArg { occurs: 0, source: Some(DefaultValue), indices: [5], type_id: Some(TypeId { t: 15469221632486072992 }), vals: [[AnyValue { inner: TypeId { t: 15469221632486072992 } }]], raw_vals: [["100"]], ignore_case: false }}, subcommand: None } }) }
[2024-04-29T02:08:16.596080584Z INFO  py_spy::python_spy] Got virtual memory maps from pid 1182335:
[2024-04-29T02:08:16.610942304Z INFO  py_spy::python_spy] Getting version from python binary BSS
[2024-04-29T02:08:16.611635008Z INFO  py_spy::python_spy] Failed to get version from BSS section: failed to find version string
[2024-04-29T02:08:16.611643462Z INFO  py_spy::python_spy] Trying to get version from path: /usr/local/mambaforge/envs/gpt/bin/python3.12
[2024-04-29T02:08:16.611648132Z INFO  py_spy::python_spy] python version 3.12.0 detected
[2024-04-29T02:08:16.611653183Z INFO  py_spy::python_spy] Failed to get interp_head from symbols, scanning BSS section from main binary
[2024-04-29T02:08:16.613659274Z INFO  py_spy::python_spy] Failed to connect to process, retrying. Error: Unsupported version of Python: 3.12.0
[2024-04-29T02:08:16.637244079Z INFO  py_spy::python_spy] Got virtual memory maps from pid 1182335:
[2024-04-29T02:08:16.649956194Z INFO  py_spy::python_spy] Getting version from python binary BSS
[2024-04-29T02:08:16.649970063Z INFO  py_spy::python_spy] Failed to get version from BSS section: failed to find version string
[2024-04-29T02:08:16.649974153Z INFO  py_spy::python_spy] Trying to get version from path: /usr/local/mambaforge/envs/gpt/bin/python3.12
[2024-04-29T02:08:16.649978538Z INFO  py_spy::python_spy] python version 3.12.0 detected
[2024-04-29T02:08:16.649982877Z INFO  py_spy::python_spy] Failed to get interp_head from symbols, scanning BSS section from main binary
[2024-04-29T02:08:16.651860942Z INFO  py_spy::python_spy] Failed to connect to process, retrying. Error: Unsupported version of Python: 3.12.0
[2024-04-29T02:08:16.675272893Z INFO  py_spy::python_spy] Got virtual memory maps from pid 1182335:
[2024-04-29T02:08:16.686990383Z INFO  py_spy::python_spy] Getting version from python binary BSS
[2024-04-29T02:08:16.687005220Z INFO  py_spy::python_spy] Failed to get version from BSS section: failed to find version string
[2024-04-29T02:08:16.687009988Z INFO  py_spy::python_spy] Trying to get version from path: /usr/local/mambaforge/envs/gpt/bin/python3.12
[2024-04-29T02:08:16.687013634Z INFO  py_spy::python_spy] python version 3.12.0 detected
[2024-04-29T02:08:16.687018102Z INFO  py_spy::python_spy] Failed to get interp_head from symbols, scanning BSS section from main binary
[2024-04-29T02:08:16.688877808Z INFO  py_spy::python_spy] Failed to connect to process, retrying. Error: Unsupported version of Python: 3.12.0
[2024-04-29T02:08:16.712299860Z INFO  py_spy::python_spy] Got virtual memory maps from pid 1182335:
[2024-04-29T02:08:16.723979518Z INFO  py_spy::python_spy] Getting version from python binary BSS
[2024-04-29T02:08:16.723990905Z INFO  py_spy::python_spy] Failed to get version from BSS section: failed to find version string
[2024-04-29T02:08:16.723994771Z INFO  py_spy::python_spy] Trying to get version from path: /usr/local/mambaforge/envs/gpt/bin/python3.12
[2024-04-29T02:08:16.723998152Z INFO  py_spy::python_spy] python version 3.12.0 detected

...

Error: Unsupported version of Python: 3.12.0

from py-spy.

olejorgenb avatar olejorgenb commented on September 28, 2024

Probably not very helpful, but https://github.com/plasma-umass/scalene and pyinstrument (both sampling profilers) support python 3.12 now. Maybe possible to get hints of how to resolve some of the issues there.

joerick/pyinstrument#246

Couldn't find the exact commits/PR for scalene

EDIT: https://github.com/P403n1x87/austin support 3.12 as well (this seems to be the best replacement to me since its model appear to be very similar to py-spy)

from py-spy.

Tsvetk avatar Tsvetk commented on September 28, 2024
> python -V
Python 3.12.3
> py-spy record -o profile-st3.svg -s python -- -c "print(23123)"
23123
Error: No python processes found in process 180942 or any of its subprocesses
>  py-spy record -o profile-st3.svg  python -- -c "print(23123)"
23123
Error: Failed to get process executable name. Check that the process is running.
Reason: No such file or directory (os error 2)
Reason: No such file or directory (os error 2)

from py-spy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.