Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

ImportError: cannot import name GLOBAL_VARIABLES #69

Open
a-padinha opened this issue Oct 22, 2015 · 2 comments
Open

ImportError: cannot import name GLOBAL_VARIABLES #69

a-padinha opened this issue Oct 22, 2015 · 2 comments

Comments

@a-padinha
Copy link

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.

@PravallikaKG
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants