← Back to team overview

sikuli-driver team mailing list archive

[Bug 1487503] Re: [error] NameError ( !!WHILE IMPORTING!! name 'exists' is not defined )

 

please use latest build of 1.1.0 (http://sikulix.com)

** Changed in: sikuli
       Status: New => Invalid

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

Title:
  [error] NameError ( !!WHILE IMPORTING!! name 'exists' is not defined )

Status in Sikuli:
  Invalid

Bug description:
  Hi,

  Using Sikuli IDE 1.1.0-Beta1.

  I have a two.sikuli script which is trying to import another
  one.sikuli script.

  one.sikuli script:
  -----------------------
  from sikuli import *
  print "This is script one"
  func():
  ...
  ...

  Execution of this works fine in both direct PLAYing and in command
  line.

  two.sikuli script:
  -----------------------
  from sikuli import *

  if __name__ == "__main__":
      from one import *
      import (one)
      reload(one)

  print "This is script two"
  one.func()

  I am easily able to run the two.sikuli script directly without sweat
  from runIDE.cmd directly with PLAY button.

  But when I go the SikuliX folder and run through command line;
  runIDE.cmd -r \path\to\two.sikuli

  I get the following error ...

  [error] script [ main ] stopped with error in line 4
  [error] NameError ( !!WHILE IMPORTING!! name 'exists' is not defined )

  I tried to find an answer for this everywhere but nothing helped. What
  mistake am I doing here ?

  Thanks.

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


References