Env.getSikuliVersion() not available - IDE workaround

Bug #718623 reported by SMercier
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

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

Tags: fkt-general
RaiMan (raimund-hocke)
summary: - X-1.0rc2 - WinXP - SP3 - Env.getVersion() attribute error
+ X-1.0rc2 - all Systems - Env.getVersion() attribute error - IDE
+ workaround
description: updated
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: X-1.0rc2 - all Systems - Env.getVersion() attribute error - IDE workaround

Confirmed. Not available on all systems, because Env.getSikuliVersion() is not defined as public.

Changed in sikuli:
status: New → In Progress
summary: - X-1.0rc2 - all Systems - Env.getVersion() attribute error - IDE
- workaround
+ X-1.0rc2 - all Systems - Env.getVersion() not available - IDE workaround
RaiMan (raimund-hocke)
summary: - X-1.0rc2 - all Systems - Env.getVersion() not available - IDE workaround
+ X-1.0rc2 - all Systems - Env.getSikuliVersion() not available - IDE
+ workaround
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
importance: Undecided → Low
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
summary: - X-1.0rc2 - all Systems - Env.getSikuliVersion() not available - IDE
- workaround
+ Env.getSikuliVersion() not available - IDE workaround
RaiMan (raimund-hocke)
tags: added: fkt-general
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Low → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Critical → High
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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