dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.61k stars 345 forks source link

ImportError: No module named android.monkeyrunner #74

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi, I am able to use AndroidViewClient in eclipse using python interpreter, but I am stuck at using both MonkeyRunner and AndroidViewClient together in a single file using eclipse. I keep getting 'ImportError: No module named android.monkeyrunner'. When I am running the same file through command line, I am able to execute it. But using eclipse I am facing issues. Please Help. I am using the python2.7 interpreter for the same.

dtmilano commented 10 years ago

AndroidViewClient (since version 4.0) is a monkeyrunner drop-in replacement so you don't need both in the same script. Use python as the interpreter when you use AndroidViewClient.

On Tue, Feb 4, 2014 at 4:55 AM, adikhullar notifications@github.com wrote:

Hi, I am able to use AndroidViewClient in eclipse using python interpreter, but I am stuck at using both MonkeyRunner and AndroidViewClient together in a single file using eclipse. I keep getting 'ImportError: No module named android.monkeyrunner'. When I am running the same file through command line, I am able to execute it. But using eclipse I am facing issues. Please Help. I am using the python2.7 interpreter for the same.

Reply to this email directly or view it on GitHubhttps://github.com/dtmilano/AndroidViewClient/issues/74 .

Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients

ghost commented 10 years ago

Okay thanks and one more thing I would like to ask is can I use HierarchyViewer with androidviewclient in same script ?? I added the chimpchat jar in the pynopath but again i got exception as "ImportError: No module named android.chimpchat.hierarchyviewer "

dtmilano commented 10 years ago

I don't think you need HierarchyViewer while using AndroidViewClient.

On Tue, Feb 4, 2014 at 11:26 PM, adikhullar notifications@github.comwrote:

Okay thanks and one more thing I would like to ask is can I use HierarchyViewer with androidviewclient in same script ?? I added the chimpchat jar in the pynopath but again i got exception as "ImportError: No module named android.chimpchat.hierarchyviewer "

Reply to this email directly or view it on GitHubhttps://github.com/dtmilano/AndroidViewClient/issues/74#issuecomment-34136706 .

Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients

ghost commented 10 years ago

Okay thanks for your response :+1: