sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02574
[Bug 697935] Re: Sikuli X / Windows / NetBeans --- setup problems
see docs:
--- Using other IDE's: http://sikuli.org/docx/faq/040-other-ide.html
--- Run scripts from commandline: http://sikuli.org/docx/faq/010-command-line.html
** Changed in: sikuli
Status: In Progress => Fix Released
** Description changed:
This is not a bug. But we leave it for a moment until docs are ready.
+ Docs have been updated: see comment below: https://bugs.launchpad.net/sikuli/+bug/697935/comments/2
---------------------------------------------------------------------
The following code runs successfully when executed from the sikuli IDE
setBundlePath ("C:\\SikuliTest\\ImageLibrary\\96dpi\\SignIn\\")
if exists("SignIn_Launch.png", 10):
doubleClick("SignIn_Launch.png")
However the same code fails when executed from NetBeans
from sikuli.Sikuli import * was included with NetBeans
VDictProxy loaded.
Windows utilities loaded.
EventManager loaded.
Traceback (most recent call last):
File "H:\SikuliCurrent\SikuliX\NetBeansProject\VCD_TestAutomationFunctionsInDevelopment\new_module.py", line 6, in <module>
if exists("SignIn_Launch.png", 10):
File "C:\SikuliXUnjar\sikuli-script\Lib\sikuli\Region.py", line 108, in exists
ret = JRegion.exists(self, target, timeout)
at org.sikuli.script.Finder.<clinit>(Finder.java:22)
at org.sikuli.script.Region.findNow(Region.java:589)
at org.sikuli.script.Region.wait(Region.java:277)
at org.python.proxies.sikuli.Region$Region$1.super__wait(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Sikuli vision engine loaded.
Text Recgonizer inited.
java.lang.ExceptionInInitializerError:
java.lang.ExceptionInInitializerError
System Path
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jre6\bin;C:\SikuliXUnjar\sikuli-script\Lib;C:\Program Files\Sikuli X\libs
User Path
C:\Program Files\Sikuli X\libs
File Structure:
Install Directory
C:\Program Files\Sikuli X
JRE
C:\Program Files\Java\jre6
Unjarred and sikuli-script.jar
C:\SikuliXUnjar\sikuli-script\Lib
Images
C:\SikuliTest
OS W7x32
Message from a successful run via SikuliIDE
Sikuli vision engine loaded.
Text Recgonizer inited.
Windows utilities loaded.
VDictProxy loaded.
EventManager loaded.
[info] double click on (114,137), MOD: 0
[debug] showTarget 74 97 80 80
[debug] close all ScreenHighlighter
[debug] close all ScreenHighlighter
[info] Exited with code 0
Note:
popup works, this is the test I use to verify that Sikuli is loaded properly.
cfgparser works
all of my scripts function in SikuliIDE
All Sikuli scripts that functioned previously in NetBeans no longer function.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/697935
Title:
Sikuli X / Windows / NetBeans --- setup problems
Status in Sikuli:
Fix Released
Bug description:
This is not a bug. But we leave it for a moment until docs are ready.
Docs have been updated: see comment below: https://bugs.launchpad.net/sikuli/+bug/697935/comments/2
---------------------------------------------------------------------
The following code runs successfully when executed from the sikuli IDE
setBundlePath ("C:\\SikuliTest\\ImageLibrary\\96dpi\\SignIn\\")
if exists("SignIn_Launch.png", 10):
doubleClick("SignIn_Launch.png")
However the same code fails when executed from NetBeans
from sikuli.Sikuli import * was included with NetBeans
VDictProxy loaded.
Windows utilities loaded.
EventManager loaded.
Traceback (most recent call last):
File "H:\SikuliCurrent\SikuliX\NetBeansProject\VCD_TestAutomationFunctionsInDevelopment\new_module.py", line 6, in <module>
if exists("SignIn_Launch.png", 10):
File "C:\SikuliXUnjar\sikuli-script\Lib\sikuli\Region.py", line 108, in exists
ret = JRegion.exists(self, target, timeout)
at org.sikuli.script.Finder.<clinit>(Finder.java:22)
at org.sikuli.script.Region.findNow(Region.java:589)
at org.sikuli.script.Region.wait(Region.java:277)
at
org.python.proxies.sikuli.Region$Region$1.super__wait(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Sikuli vision engine loaded.
Text Recgonizer inited.
java.lang.ExceptionInInitializerError:
java.lang.ExceptionInInitializerError
System Path
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jre6\bin;C:\SikuliXUnjar\sikuli-script\Lib;C:\Program Files\Sikuli X\libs
User Path
C:\Program Files\Sikuli X\libs
File Structure:
Install Directory
C:\Program Files\Sikuli X
JRE
C:\Program Files\Java\jre6
Unjarred and sikuli-script.jar
C:\SikuliXUnjar\sikuli-script\Lib
Images
C:\SikuliTest
OS W7x32
Message from a successful run via SikuliIDE
Sikuli vision engine loaded.
Text Recgonizer inited.
Windows utilities loaded.
VDictProxy loaded.
EventManager loaded.
[info] double click on (114,137), MOD: 0
[debug] showTarget 74 97 80 80
[debug] close all ScreenHighlighter
[debug] close all ScreenHighlighter
[info] Exited with code 0
Note:
popup works, this is the test I use to verify that Sikuli is loaded properly.
cfgparser works
all of my scripts function in SikuliIDE
All Sikuli scripts that functioned previously in NetBeans no longer function.
References