lovelysystems / robotframework-androidlibrary

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

ImportError: cannot import name GLOBAL_VARIABLES #69

Open a-padinha opened 8 years ago

a-padinha commented 8 years ago

Hello,

I can't run apidemos.txt , it gets the following error:

[ ERROR ] Error in file 'C:\Users\Ana Padinha\Desktop\robotframework-androidlibrary-master\tests\apidemos\apidemos.txt': Importing test library 'AndroidLibrary' failed: ImportError: cannot import name GLOBAL_VARIABLES Traceback (most recent call last): File "c:\python27\lib\site-packages\AndroidLibraryinit.py", line 13, in from robot.variables import GLOBAL_VARIABLES PYTHONPATH: c:\python27\python27.zip c:\python27\DLLs c:\python27\lib c:\python27\lib\plat-win c:\python27\lib\lib-tk c:\python27 c:\python27\lib\site-packages c:\python27\lib\site-packages\wx-2.8-msw-unicode


Apidemos

Screen contains text | FAIL | Parent suite setup failed: No keyword with name 'Start Emulator' found. (...)

I can't figure out what's happening, everything is installed as recommended.

PravallikaKG commented 8 years ago

Hi,

I am also facing the same error when i am trying to use Library AndroidLibrary in my robot script. Is your issue resolved???? If resloved, Help me how to resolve it.

I installed it using following command: pip install --upgrade robotframework-androidlibrary

rainmanwy commented 8 years ago

downgrade robotframework to 2.7.x or 2.8.2 should fix this problem. GLOBAL_VARIABLES is removed from robotframework.

As this variable is internal variable in robot framework, i think 3rd libraries should not use it.