Systrace | Android | No such file or directory
Asked Answered
G

3

8

I am unable to get systrace to work on my Mac. I am using a Galaxy Nexus running Jelly Beans. I have show traces enabled from the developer options. And in the terminal when I try to execute: ./systrace.py I get the following error message:

Traceback (most recent call last):
File "./systrace.py", line 212, in <module>
main()
File "./systrace.py", line 121, in main
stderr=subprocess.PIPE)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",    line 679, in __init__
errread, errwrite)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

I am not familiar with Python at all so I may be making a novice mistake. Please help.

Gerbil answered 6/8, 2012 at 5:38 Comment(0)
P
12

it looks like the script assumes adb is in your path. add the platform-tools sdk dir to your path and it should work.

Pyramid answered 7/8, 2012 at 17:24 Comment(3)
"add the platform-tools sdk dir to your path" <- how do it do that ? I am just typing in "./systrace.py".Gerbil
Got it ! Sorry for asking the dumbest question ever in the comment above ! ThanksGerbil
I had the same mystifying issue and I can confirm it was due to adb not being in the path.Horror
W
0

Systrace is not shipped as part of platform tools recently. Please user perfeenter link description heretto instead

Wundt answered 6/9, 2023 at 10:44 Comment(0)
S
-1

Try doing adb root before running the script.

Synectics answered 6/8, 2012 at 20:14 Comment(1)
Can you please elaborate on "doing adb root"?Gerbil

© 2022 - 2024 — McMap. All rights reserved.