您好我是python開發新手。我想在執行給定http://dtmilano.blogspot.in/2012/02/monkeyrunner-interacting-with-views.html的代碼,但是當過我試圖執行的代碼我得到以下錯誤:ImportError:沒有名爲dtmilano的模塊
Traceback (most recent call last):
File "C:\Users\gur31265\workspace\MonkeyRunnerForSmartRecorder\com\test\Runner.py", line 23, in <module>
from com.dtmilano.android.viewclient import ViewClient
ImportError: No module named dtmilano
我使用的Eclipse中的PyDev和Jython 2.5.3。我還在Windows 7機器上運行的Eclipse上配置了Python 32。其他Python腳本運行良好,但我不知道爲什麼dtmilano的博客上給出的代碼導致此錯誤。我還安裝了AndroidViewClient並在系統路徑中設置了ANDROID_VIEW_CLIENT_HOME。請幫忙。
@dtmilano請幫忙 –
你得到了什麼'sys.path'? –
C:\\ Users \\ gur31265 \\ workspace \\ MonkeyRunnerForSmartRecorder \\ com \\ test,C:\\ Users \\ gur31265 \\ workspace \\ MonkeyRunnerForSmartRecorder,D:\\ E&F Drive Back up \\ Program Files \\ Android \\ android-sdk \\ tools \\ lib \\ monkeyrunner.jar,C:\\ Users \\ gur31265 \\ Downloads \\ dtmilano -AndroidViewClient-bd98f63 \\ AndroidViewClient \\ src,D:\\ E&F Drive Back up \\ Program Files \\ Android \\ android-sdk \\ tools \\ lib \\ jython.jar,C:\\ Program Files \\ Python32 \\ DLLs,C:\\ Program Files \ \ Python32 \\ lib,C:\\ Program Files \\ Python32,C:\\ Program Files \\ Python32 \\ lib \\ site-packages,C:\\ Windows \\ system32 \\ python32.zip –