lovelysystems / robotframework-androidlibrary

Robot Framework Automation Library for Android
29 stars 22 forks source link

AndroidLibrary import problem #23

Closed paweloczadly closed 11 years ago

paweloczadly commented 11 years ago

I can't import AndroidLibrary

I've installed AndroidLibrary using: pip install --upgrade robotframework-androidlibrary

When I run my sample test I get the following output: o:\projects\robotframework\Android\robotframework-calabash-example>pybot calabash-test.txt >> result.txt [ ERROR ] Error in file 'o:\projects\robotframework\Android\robotframework-calabash-example\calabash-test.txt' in table 'Settings': Importing test library 'AndroidLibrary ' failed: ImportError: No module named requests Traceback (most recent call last): File "o:\tools\python\lib\site-packages\AndroidLibraryinit.py", line 5, in <mo dule> import requests PYTHONPATH: o:\tools\python\lib\site-packages\robot\libraries o:\tools\python\lib\site-packages o:\tools\python\lib\site-packages\setuptools-0.6c11-py2.7.egg o:\tools\python\lib\site-packages\simplejson-2.6.1-py2.7.egg o:\tools\python\lib\site-packages\robotframework_selenium2library-1.0.1-py2.7.egg o:\tools\python\lib\site-packages\docutils-0.9.1-py2.7.egg o:\tools\python\lib\site-packages\selenium-2.25.0-py2.7.egg o:\tools\python\lib\site-packages\decorator-3.3.3-py2.7.egg o:\tools\python\lib\site-packages\pip-1.2.1-py2.7.egg C:\Windows\system32\python27.zip o:\tools\python\DLLs o:\tools\python\lib o:\tools\python\lib\plat-win o:\tools\python\lib\lib-tk o:\tools\python . o:\projects\robotframework\Android\robotframework-calabash-example

And here is my folder of AndroidLibrary directory: Directory of o:\tools\python\Lib\site-packages\AndroidLibrary

2012-09-19 13:20

. 2012-09-19 13:20 .. 2012-09-14 00:20 18˙423 init.py 2012-09-14 00:20 8˙348 killableprocess.py 2012-09-14 00:20 18 version.py 2012-09-14 00:20 9˙554 winprocess.py 2012-09-19 13:20 21˙542 init.pyc 2012-09-19 13:20 6˙838 killableprocess.pyc 2012-09-19 13:20 174 version.pyc 2012-09-19 13:20 7˙452 winprocess.pyc 2012-09-19 14:20 0 result-dir.txt

Can you provide sample test case? Or something other?

burnes commented 11 years ago

You will also need the dependency "requests" (http://pypi.python.org/pypi/requests).

paweloczadly commented 11 years ago

Thank You, it works