← Back to team overview

sikuli-driver team mailing list archive

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

 

** Summary changed:

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

** Changed in: sikuli
    Milestone: 2.0.0 => 2.0.1

-- 
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:
  [check] 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


References