问题:
ImportError: No module named progress
python代码:
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
from progress.bar import Bar
print "Starting the script..."
device = MonkeyRunner.waitForConnection(deviceId='FA489WM01202')
y = 500
x2 = 500
pause = 0.02
bar = Bar('Processing', max=40000)
for i in range(40000):
device.touch(x2, y, 'DOWN_AND_UP')
MonkeyRunner.sleep(pause)
bar.next()
bar.finish()
print "Finished the script..."
我的PATH变量:
到目前为止我尝试了什么:
每次都成功安装该模块,并且该模块也列在site-packages
文件夹或vendor
的{{1}}文件夹中,但它仍然无效。
即使在我将模块文件放在与脚本位置相同的目录中之后,它也无法工作......我现在没有想法......