My python version is 2.7.6. When I start droidbox with the command: ./droidbox apkfile. It went wrong with the error message:
Traceback (most recent call last):
File "scripts/droidbox.py", line 520, in
main(sys.argv)
File "scripts/droidbox.py", line 322, in main
ret = call(['monkeyrunner', 'monkeyrunner.py', apkName, packageName, mainActivity], stderr=PIPE, cwd=os.path.dirname(os.path.realpath(file)))
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(_popenargs, *_kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
My python version is 2.7.6. When I start droidbox with the command: ./droidbox apkfile. It went wrong with the error message: Traceback (most recent call last): File "scripts/droidbox.py", line 520, in
main(sys.argv)
File "scripts/droidbox.py", line 322, in main
ret = call(['monkeyrunner', 'monkeyrunner.py', apkName, packageName, mainActivity], stderr=PIPE, cwd=os.path.dirname(os.path.realpath(file)))
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(_popenargs, *_kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
The error comes from L315(script/droidbox.py). https://github.com/pjlantz/droidbox/blob/master/droidbox4.1.1/scripts/droidbox.py#L315
I fix the problem by add shell.call(shell=True).
http://stackoverflow.com/questions/18962785/oserror-errno-2-no-such-file-or-directory-while-using-python-subprocess-in-dj