← Back to team overview

sikuli-driver team mailing list archive

[Bug 718623] Re: X-1.0rc2 - all Systems - Env.getSikuliVersion() not available - IDE workaround

 

** Summary changed:

- X-1.0rc2 - all Systems - Env.getVersion() not available - IDE workaround
+ X-1.0rc2 - all Systems - Env.getSikuliVersion() not available - IDE workaround

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

Title:
  X-1.0rc2 - all Systems - Env.getSikuliVersion() not available - IDE
  workaround

Status in Sikuli:
  In Progress

Bug description:
  *** Problem: Env.getSikuliVersion is defined, but not public (so not
  accessible)

  *** Workaround: 
  As long as you use the IDE (GUI or commandline) to launch your scripts, use this instead:
  import org.sikuli.ide.IDESettings as IDESettings
  v = IDEsettings.SikuliVersion 

  This returns the same string as Env.getSikuliVersion() should.
  -----------------------------------------------------------------------------

  Hi all,

         I tried the new version of Sikuli X-1.0-RC2 on a win xp sp3 where the previous version of Sikuli was not installed. I used the .exe version so the lib folder is correctly defined in the Windows PATH. Unfortunately when i launched a short script from the Sikuli IDE:
  setShowActions(True)
  popup(Env.getSikuliVersion())

  I obtain the following error :
  [info] Sikuli vision engine loaded.
  [info] Windows utilities loaded.
  [info] VDictProxy loaded.
  [error] Arrêté [error] Une erreur est survenue à la ligne 2 [error] Message d'erreur : Traceback (most recent call last):  File "C:\WINDOWS\Temp\sikuli-tmp2037300679833065495.py", line 2, in    popup(Env.getSikuliVersion()) AttributeError: type object 'org.sikuli.script.Env' has no attribute 'getSikuliVersion'

  Note : Sorry a part of the messages are in french.

  Regards



References