← Back to team overview

sikuli-driver team mailing list archive

[Question #235419]: Import problem

 

New question #235419 on Sikuli:
https://answers.launchpad.net/sikuli/+question/235419

Hi, 

I installed Eclipse and import a script that I made using sikuli application.
However Eclipse warning me with this message : "Undefined variable: sikuli
Unresolved import: !<MissingName>!
Unused import: !<MissingName>!
Encountered "import" at line 1, column 15. Was expecting one of:     <NEWLINE> ...     "(" ...     "[" ...     ";" ...     "," ...     "." ...     
 "+" ...     "-" ...     "*" ...     "/" ...     "//" ...     "<<" ...     ">>" ...     "%" ...     "^" ...     "|" ...     "&" ...     "=" ...     ">" ...     "<" ...     
 "==" ...     "<=" ...     ">=" ...     "<>" ...     "!=" ...     "+=" ...     "-=" ...     "*=" ...     "/=" ...     "//=" ...     "%=" ...     "&=" ...     "|=" 
 ...     "^=" ...     "<<=" ...     ">>=" ...     "**=" ...     "or" ...     "and" ...     "not" ...     "is" ...     "in" ...     "if" ...     ";" ...     "," ..."


My Script

sikuli.Sikuli import *[HERE IS THE PROBLEM]


#--- RMS Automation tests ---#

def setUp():
        try:           
            openApp("C:\\Program Files\\Internet Explorer\\iexplore.exe")
            if exists("1371648621451.png"):
                print("Internet Explorer opened")          
        except:
            raise Exception("Error")
            

def tearDown():# tá dando pau 
        try: 
            closeApp("C:\\Program Files\\Internet Explorer\\iexplore.exe")
            waitVanish("1371648810782.png")
          
        except:
            raise exception
            popup("error") 

def openApplication():
    try:

...





-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.