OSError: [Errno 2] No such file or directory

来源:互联网 发布:熊猫抢竹子软件 编辑:程序博客网 时间:2024/06/05 15:44
Traceback (most recent call last):  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 530, in __bootstrap_inner    self.run()  File "scripts/droidbox.py", line 144, in run    call(['monkeyrunner', 'scripts/monkeyrunner.py', apkName, runPackage, runActivity], stderr=PIPE)  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 486, in call    return Popen(*popenargs, **kwargs).wait()  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in __init__    errread, errwrite)  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202, in _execute_child    raise child_exceptionOSError: [Errno 2] No such file or directory

why this happened? just because when you execute the command
./droidbox.sh file.apk

you have opened two terminal.


so just close all the terminal and restart a new one,all the problems gone.


you can also see the official answer:

It was a case of trying to run the script in 2 different terminal windows.

That's all, thank you!

0 0
原创粉丝点击