sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27261
[Question #252211]: NameError when running from command line
New question #252211 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252211
Hello,
I am new to Sikuli. Here is my problem:
I created some scripts within multiple modules. It works perfectly when I debug from IDE UI. However, it throws following error when I ran it from command line like:
C:/sikuli/runScript.cmd -r script2.sikuli -f log.txt -c -u userlog.txt
or:
C:/sikuli/runIDE.cmd -r script2.sikuli -f log.txt -c -u userlog.txt
Error message: [error] NameError ( name 'someFunction' is not defined )
I looked through the site and and there is no luck to find the solution. Here, the 'someFunction' structure is like:
script1.sikuli:
from sikuli import *
def someFunction:
....
script2.sikuli: # The entry file
from script1 import *
from sikuli import *
someFunction()
Again, it works from IDE but failed from command line. Thank you for your help.
Sikuli version: 1.0.1
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.