Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Systrace | Android | No such file or directory

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.

like image 714
Syed Fahad Sultan Avatar asked Aug 06 '12 05:08

Syed Fahad Sultan


People also ask

How do I fix No such file or directory?

In some cases, this error could be shown when the path of the specified file or folders exceeds 258 characters in length. The way to solve this is to reduce the length of the full path to the items specified, either by moving or renaming the file(s) and/or containing folders.

How fix bash No such file or directory?

To fix it, try the dos2unix program if you have it, or see Converting DOS Files to Linux Format. Note that if you use dos2unix it will probably create a new file and delete the old one, which will change the permissions and might also change the owner or group and affect hard links.

How do I find the absolute path of a file?

You can determine the absolute path of any file in Windows by right-clicking a file and then clicking Properties. In the file properties first look at the "Location:" which is the path to the file.

Why does Ubuntu Say No such file or directory?

No such file or directory" means that either the executable binary itself or one of the libraries it needs does not exist. Libraries can also need other libraries themselves. then the problem can be fixed by making sure the mentioned libraries are installed and in the library search path.


1 Answers

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

like image 187
slushi Avatar answered Sep 20 '22 23:09

slushi