我正在使用 Ubuntu12.04,我看到下面的错误,在我看来,python 试图以某种方式调用 adb 命令,但失败了。
/bin/sh: 1: adb: not found
Traceback (most recent call last):
`File "./test.py", line 1395, in <module>
main()
File "./test.py", line 1218, in main
Device.wait_for_device(TIMEOUT, None, a.getport())
File "./test.py", line 433, in wait_for_device
if (len(a) == 1 and get_attached_devices()):
File "./test.py", line 126, in get_attached_devices
lines = subprocess.check_output(adb_rel_path + 'adb devices', shell =True).split('\n')
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'adb devices' returned non-zero exit status 127
我按照说明安装了pyadb: https ://pypi.python.org/pypi/pyadb/0.1.1
但它仍然不起作用。我现在一点头绪都没有。有谁知道我是否缺少任何软件包或程序?