[check] IDE: a module home.sikuli cannot be used when running from command line

Bug #1349726 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

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

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.2.0
RaiMan (raimund-hocke)
summary: - [1.1.0] IDE: a module home.sikuli cannot be used when running from
+ [check] IDE: a module home.sikuli cannot be used when running from
command line
Changed in sikuli:
milestone: 2.0.0 → 2.0.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.