← Back to team overview

sikuli-driver team mailing list archive

[Bug 1349726] [NEW] [1.1.0] IDE: a module home.sikuli cannot be used when running from command line

 

Public bug reported:

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

** Affects: sikuli
     Importance: Medium
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.2.0

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1349726

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

Status in Sikuli:
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1349726/+subscriptions


Follow ups

References