GithubHelp home page GithubHelp logo

Comments (3)

jairov4 avatar jairov4 commented on September 28, 2024

Same for me on Windows 11 and Python 3.11.9

PS C:\Users\jairo> py-spy top --pid 6516
[2024-09-26T21:34:56.591592500Z INFO  py_spy::config] Command line args: ArgMatches { args: {}, subcommand: Some(SubCommand { id: [hash: 94BC6A87CFA2B1F9], name: "top", matches: ArgMatches { args: {[hash: CD5160AB4406C427]: MatchedArg { occurs: 1, source: Some(CommandLine), indices: [2], type_id: Some(TypeId { t: 8220707328025750160 }), vals: [[AnyValue { inner: TypeId { t: 8220707328025750160 } }]], raw_vals: [["6516"]], ignore_case: false }, [hash: AAFAF59EB7E2AC8]: MatchedArg { occurs: 0, source: Some(DefaultValue), indices: [3], type_id: Some(TypeId { t: 8220707328025750160 }), vals: [[AnyValue { inner: TypeId { t: 8220707328025750160 } }]], raw_vals: [["100"]], ignore_case: false }}, subcommand: None } }) }
[2024-09-26T21:34:56.593518800Z INFO  py_spy::python_spy] Got virtual memory maps from pid 6516:
[2024-09-26T21:34:56.594659600Z INFO  py_spy::python_spy] Found libpython binary @ C:\Users\jairo\AppData\Local\Programs\Python\Python311\python311.dll
[2024-09-26T21:34:56.598030500Z INFO  py_spy::python_spy] Getting version from python binary BSS
[2024-09-26T21:34:56.598683000Z INFO  py_spy::python_spy] Failed to get version from BSS section: failed to find version string
[2024-09-26T21:34:56.598761000Z INFO  py_spy::python_spy] Getting version from libpython BSS
[2024-09-26T21:34:56.599668500Z INFO  py_spy::version] Found matching version string '3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit'
[2024-09-26T21:34:56.599843400Z INFO  py_spy::python_spy] python version 3.11.9 detected
[2024-09-26T21:34:56.599977800Z INFO  py_spy::python_spy] got symbol _PyRuntime (0x00007ffb82137600) from libpython binary
[2024-09-26T21:34:56.600279800Z WARN  py_spy::python_spy] Interpreter address from _PyRuntime symbol is invalid 0000000000000000
[2024-09-26T21:34:56.600387100Z INFO  py_spy::python_spy] Failed to get interp_head from symbols, scanning BSS section from main binary
[2024-09-26T21:34:56.608448500Z INFO  py_spy::python_spy] Failed to get interpreter from binary BSS, scanning libpython BSS
[2024-09-26T21:34:58.338916400Z INFO  py_spy::python_spy] Failed to connect to process, retrying. Error: Failed to find a python interpreter in the .data section

Also on Windows 11 and Python 3.10.0

PS C:\Users\jairo> py-spy top --pid 15988
[2024-09-26T21:54:26.535191700Z INFO  py_spy::config] Command line args: ArgMatches { args: {}, subcommand: Some(SubCommand { id: [hash: 94BC6A87CFA2B1F9], name: "top", matches: ArgMatches { args: {[hash: CD5160AB4406C427]: MatchedArg { occurs: 1, source: Some(CommandLine), indices: [2], type_id: Some(TypeId { t: 8220707328025750160 }), vals: [[AnyValue { inner: TypeId { t: 8220707328025750160 } }]], raw_vals: [["15988"]], ignore_case: false }, [hash: AAFAF59EB7E2AC8]: MatchedArg { occurs: 0, source: Some(DefaultValue), indices: [3], type_id: Some(TypeId { t: 8220707328025750160 }), vals: [[AnyValue { inner: TypeId { t: 8220707328025750160 } }]], raw_vals: [["100"]], ignore_case: false }}, subcommand: None } }) }
[2024-09-26T21:54:26.537111000Z INFO  py_spy::python_spy] Got virtual memory maps from pid 15988:
[2024-09-26T21:54:26.538560100Z INFO  py_spy::python_spy] Found libpython binary @ C:\Users\jairo\AppData\Local\Programs\Python\Python310\python310.dll
[2024-09-26T21:54:26.541912200Z INFO  py_spy::python_spy] Getting version from python binary BSS
[2024-09-26T21:54:26.542565500Z INFO  py_spy::python_spy] Failed to get version from BSS section: failed to find version string
[2024-09-26T21:54:26.542667900Z INFO  py_spy::python_spy] Getting version from libpython BSS
[2024-09-26T21:54:26.543033600Z INFO  py_spy::version] Found matching version string '3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 19:00:18) [MSC v.1929 64 bit'
[2024-09-26T21:54:26.543172000Z INFO  py_spy::python_spy] python version 3.10.0 detected
[2024-09-26T21:54:26.543245800Z INFO  py_spy::python_spy] got symbol _PyRuntime (0x00007ffb80e34800) from libpython binary
[2024-09-26T21:54:26.543480000Z WARN  py_spy::python_spy] Interpreter address from _PyRuntime symbol is invalid 0016c0d4003c2bd8
[2024-09-26T21:54:26.543596500Z INFO  py_spy::python_spy] Failed to get interp_head from symbols, scanning BSS section from main binary
[2024-09-26T21:54:26.552387400Z INFO  py_spy::python_spy] Failed to get interpreter from binary BSS, scanning libpython BSS
[2024-09-26T21:54:27.015787500Z INFO  py_spy::python_spy] Failed to connect to process, retrying. Error: Failed to find a python interpreter in the .data section

from py-spy.

jairov4 avatar jairov4 commented on September 28, 2024

may be is any page indicating which version of python works?

from py-spy.

jairov4 avatar jairov4 commented on September 28, 2024

I found it works on Python 3.9 on windows but unfortunately it is useless for my case, my project use python 3.11 syntax :(

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.