Comments (3)
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.
may be is any page indicating which version of python works?
from py-spy.
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)
- attempt to subtract with overflow in console_viewer.rs
- libproc v0.13.0 doesn't build for me
- Programmatically start/stop py-spy recording HOT 1
- Panics at times when sampling a Django app HOT 4
- No source distribution files available in the Pypi site HOT 1
- Flame graphs cpu on-off
- Add build instruction to README
- Use as python library HOT 3
- Python 3.12 not supported HOT 4
- python adapter
- Error: Failed to find a python interpreter in the .data section HOT 2
- Could you please make a release?
- how can the `top` instruction have output
- unresolved import `winapi::um::errhandlingapi` HOT 1
- Cannot detect GIL holding HOT 1
- Support for Python 3.12 HOT 1
- Cant get to run with uvicorn
- Error: Failed to merge native and python frames
- Handling paths set by shell environment variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-spy.