简体   繁体   English

Systrace错误-没有这样的文件或目录

[英]Systrace error - No such file or directory

I added adb to the path but the error persists. 我向路径添加了adb,但错误仍然存​​在。 I am trying to use systrace on a linux machine. 我正在尝试在Linux计算机上使用systrace。 Kindly help me out 请帮我

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

I think you added the path of adb instead of the path of the directory that containing adb. 我认为您添加了adb的路径,而不是包含adb的目录的路径。

See https://stackoverflow.com/a/11851028/2225682 . 参见https://stackoverflow.com/a/11851028/2225682

Several possible reasons: 几种可能的原因:

  • You don't have adb dir in your path () 您的路径中没有adb dir ()
  • You don't have Python in your path 您的路径中没有Python
  • Phone needs to support sysTrace and it seems that some of them just don't (pretty often we forget this :S) 手机需要支持 sysTrace,而其中的某些功能似乎并不支持(我们常常忘记了:S)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM