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

运行python报错 failed to capture systrace, check your inputs firstly #49

Closed
aheadlcx opened this issue Dec 9, 2022 · 1 comment
Closed

Comments

@aheadlcx
Copy link

aheadlcx commented Dec 9, 2022

经调试,实际报错信息如下:

Traceback (most recent call last):
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/systrace.py", line 48, in <module>
    from systrace import run_systrace
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/run_systrace.py", line 42, in <module>
    from systrace import systrace_runner
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/systrace_runner.py", line 16, in <module>
    from systrace.tracing_agents import battor_trace_agent
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/tracing_agents/battor_trace_agent.py", line 10, in <module>
    from battor import battor_wrapper
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/catapult/common/battor/battor/battor_wrapper.py", line 24, in <module>
    from serial.tools import list_ports
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/catapult/third_party/pyserial/serial/tools/list_ports.py", line 29, in <module>
    from serial.tools.list_ports_posix import *
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/catapult/third_party/pyserial/serial/tools/list_ports_posix.py", line 50, in <module>
    from serial.tools.list_ports_osx import comports
  File "/Users/apple/Library/Android/sdk/platform-tools/systrace/catapult/third_party/pyserial/serial/tools/list_ports_osx.py", line 31, in <module>
    kIOMasterPortDefault = ctypes.c_void_p.in_dll(iokit, "kIOMasterPortDefault")
ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found
@mzule
Copy link
Collaborator

mzule commented Mar 21, 2023

这是systrace的错误,可能需要换一个稳定的systrace,目前systrace在官方已经废弃了,我们后面会迁移到perfetto上。

@mzule mzule closed this as completed Mar 21, 2023
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

2 participants