robotframework-androidlibrary icon indicating copy to clipboard operation
robotframework-androidlibrary copied to clipboard

ImportError: cannot import name GLOBAL_VARIABLES

Open a-padinha opened this issue 9 years ago • 2 comments

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\AndroidLibrary__init__.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.

a-padinha avatar Oct 22 '15 11:10 a-padinha

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

PravallikaKG avatar Apr 29 '16 10:04 PravallikaKG

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.

rainmanwy avatar May 19 '16 02:05 rainmanwy