xiaocong / uiautomator

Python wrapper of Android uiautomator test tool.
MIT License
2.04k stars 644 forks source link

RPC server not started! on windows 7 #163

Open abhay175 opened 8 years ago

abhay175 commented 8 years ago

Hi I am trying to run some device test using python on windows. I am getting an error - RPC server not started!

Code -

from uiautomator import device as d
d.screen.on()

I am not sure how to start RPC server on windows

siva-kranthi commented 8 years ago

It should automatically start. There might be some issue while installing APKs on device. Make sure that your adb path doesn't have spaces in it

abhay175 commented 8 years ago

Where do i set adb path.? I am.runnung directly from eclipse... On May 13, 2016 11:57 PM, "Siva Kranthi Kumar Mallipeddi" < notifications@github.com> wrote:

It should automatically start. There might be some issue while installing APKs on device. Make sure that your adb path doesn't have spaces in it

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/xiaocong/uiautomator/issues/163#issuecomment-219204880

siva-kranthi commented 8 years ago

Make sure that the android SDK doesn't have any space in it's path from root. You can check for adb path in environment variable

abhay175 commented 8 years ago

You are referring to android_home variable right? Regardless I will chk it out... Thank you. On May 14, 2016 09:24, "Siva Kranthi Kumar Mallipeddi" < notifications@github.com> wrote:

Make sure that the android SDK doesn't have any space is it's path from root. You can check for ad path in environment variable

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/xiaocong/uiautomator/issues/163#issuecomment-219229309

abhay175 commented 8 years ago

I verified that there is no space in android sdk path. Here is the path for ANDROID_HOME

On Sat, May 14, 2016 at 8:46 PM, abhay tamboli abhay175@gmail.com wrote:

You are referring to android_home variable right? Regardless I will chk it out... Thank you. On May 14, 2016 09:24, "Siva Kranthi Kumar Mallipeddi" < notifications@github.com> wrote:

Make sure that the android SDK doesn't have any space is it's path from root. You can check for ad path in environment variable

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/xiaocong/uiautomator/issues/163#issuecomment-219229309