← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #402692]: Problem running script from Win command line

 

Question #402692 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402692

M Baker gave more information on the question:
Wanted to add that I do not see sikuli-ide.exe or sikuli-ide.bat
anywhere.  Additionally, I do not have sikuli-script.jar ---- from
looking at runsikulix.cmd, it appears that the equivalent jar is
sikulix.jar (which I obviously do have) but perhaps that is a bad
assumption.

This is a terrific piece of software based on the experimentation I've
done so far, and I'm fully appreciative/eager to really start using it
fully, but the installation process seems a little bit confusing.  I
think part of the problem is that examples I've found by Googling show
earlier versions of Sikuli and things have changed between then and
1.1.0.

Also just for the record, here is my installation log file ----

[debug (10/2/16 4:04:25 PM)] Debug: setLogFile: D:\SikuliX\SikuliX-1.1.0-SetupLog.txt
[debug (10/2/16 4:04:25 PM)] RunSetup: ... starting with no args given
[debug (10/2/16 4:04:25 PM)] RunSetup: Setup: 1.1.0 2015-10-06_17:22 in folder:
D:\SikuliX
[debug (10/2/16 4:04:25 PM)] RunSetup: RunningSystem: Windows 10.0
[debug (10/2/16 4:04:25 PM)] RunSetup: parent of jar/classes: D:\SikuliX
[debug (10/2/16 4:04:25 PM)] RunSetup: RunningJava: Java 8 (amd64) 1.8.0_102-b14
[debug (10/2/16 4:04:25 PM)] init user preferences
[debug (10/2/16 4:04:36 PM)] RunSetup: 
popInfo: --------------------
asking for option 1: Package 1: You get SikuliX (sikulix.jar) which supports all usages of Sikuli
-------------------- Some Information on this option, that might help to decide, wether to select it ------------------
It is recommended for people new to Sikuli to get a feeling about the features
 - and those who want to develop Sikuli scripts with the Sikuli IDE
 - and those who want to run Sikuli scripts from commandline.
Directly supported scripting languages are Jython and JRuby (you might choose one of them or even both)
For those who know ;-) additionally you can ...
- develop Java programs with Sikuli features in IDE's like Eclipse, NetBeans, ...
- develop in any Java aware scripting language adding Sikuli features in IDE's like Eclipse, NetBeans, ...
Special INFO for Jython, JRuby and Java developement
If you want to use standalone Jython/JRuby or want to develop in Java in parallel,
you should select Package 2 additionally (Option 2)
In these cases, Package 1 (SikuliX) can be used for image management and for small tests/trials.
Special info for Windows systems:
The generated jars can be used out of the box with Java 32-Bit and Java 64-Bit as well.
The Java version is detected at runtime and the native support is switched accordingly.
--------------------
[debug (10/2/16 4:05:05 PM)] RunSetup: 
popAsk: --------------------
The following file(s) will be downloaded to
D:\SikuliX
--- Native support libraries for Windows (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE-1.1.0-forsetup.jar (IDE/Scripting)
sikulixsetupAPI-1.1.0-forsetup.jar (Java API)
 - with Jython
--- Package 2 ---
sikulixsetupAPI-1.1.0-forsetup.jar (done in package 1)
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (10/2/16 4:05:07 PM)] RunSetup: 
popAsk: --------------------
You have for Windows native libs
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads_201510061722\sikulixlibswin-1.1.0.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (10/2/16 4:05:14 PM)] FileManager: Downloading sikulixlibswin-1.1.0.jar having 10577 KB
[debug (10/2/16 4:05:19 PM)] FileManager: downloaded 10577 KB to:
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads_201510061722\sikulixlibswin-1.1.0.jar
[debug (10/2/16 4:05:19 PM)] FileManager: download time: 4
[debug (10/2/16 4:05:22 PM)] RunSetup: Copied from Downloads: sikulixlibswin
[debug (10/2/16 4:05:22 PM)] FileManager: resetFolder:
D:\SikuliX\SetupStuff\sikulixlibs\windows
jar:file:/D:/SikuliX/sikulixlibswin.jar
[debug (10/2/16 4:05:22 PM)] RunSetup: 
popAsk: --------------------
You have for Java API package
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads_201510061722\sikulixsetupAPI-1.1.0-forsetup.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (10/2/16 4:05:29 PM)] FileManager: Downloading sikulixsetupAPI-1.1.0-forsetup.jar having 2083 KB
[debug (10/2/16 4:05:32 PM)] FileManager: downloaded 2083 KB to:
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads_201510061722\sikulixsetupAPI-1.1.0-forsetup.jar
[debug (10/2/16 4:05:32 PM)] FileManager: download time: 1
[debug (10/2/16 4:05:35 PM)] RunSetup: Copied from Downloads: sikulixapi
[debug (10/2/16 4:05:35 PM)] FileManager: resetFolder:
D:\SikuliX\SetupStuff\Lib
jar:file:/D:/SikuliX/sikulixapi.jar
[debug (10/2/16 4:05:35 PM)] RunSetup: 
popAsk: --------------------
You have for SikuliX IDE package
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads_201510061722\sikulixsetupIDE-1.1.0-forsetup.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (10/2/16 4:05:38 PM)] FileManager: Downloading sikulixsetupIDE-1.1.0-forsetup.jar having 3858 KB
[debug (10/2/16 4:05:41 PM)] FileManager: downloaded 3858 KB to:
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads_201510061722\sikulixsetupIDE-1.1.0-forsetup.jar
[debug (10/2/16 4:05:41 PM)] FileManager: download time: 2
[debug (10/2/16 4:05:44 PM)] RunSetup: Copied from Downloads: sikulix
[debug (10/2/16 4:05:44 PM)] RunSetup: 
popAsk: --------------------
If you click YES, you will get Jython version 2.7.0 (recommended)
... but there is an issue with some rare UTF-8/Unicode situations,
that usually appear on startup with UTF-8 ccharacters
somewhere in the system environment
If you encounter such problems with Jython 2.7.0
run setup again and
click NO to get Jython 2.5.4rc1
--------------------
[debug (10/2/16 4:05:55 PM)] RunSetup: 
popAsk: --------------------
You have for Jython 2.7
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads\jython-standalone-2.7.0.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (10/2/16 4:06:00 PM)] FileManager: Downloading jython-standalone-2.7.0.jar having 36154 KB
[debug (10/2/16 4:08:06 PM)] FileManager: downloaded 36154 KB to:
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixDownloads\jython-standalone-2.7.0.jar
[debug (10/2/16 4:08:06 PM)] FileManager: download time: 125
[debug (10/2/16 4:08:09 PM)] RunSetup: Copied from Downloads: Jython
[debug (10/2/16 4:08:09 PM)] RunSetup: Download ended
[debug (10/2/16 4:08:09 PM)] RunSetup: Downloads for selected options:
sikulixlibswin-1.1.0.jar sikulixsetupIDE-1.1.0-forsetup.jar sikulixsetupAPI-1.1.0-forsetup.jar jython-standalone-2.7.0.jar 
[debug (10/2/16 4:08:09 PM)] RunSetup: adding needed stuff to sikulixapi.jar
[debug (10/2/16 4:08:09 PM)] FileManager: buildJar: sikulixtemp.jar
[debug (10/2/16 4:08:09 PM)] FileManager: buildJar: adding: sikulixapi.jar
[debug (10/2/16 4:08:09 PM)] FileManager: buildJar: adding: sikulixlibswin.jar
[debug (10/2/16 4:08:11 PM)] FileManager: buildJar: adding sikulixcontent at sikulixlibswin
[debug (10/2/16 4:08:11 PM)] FileManager: buildJar: adding sikulixcontent at Lib
[debug (10/2/16 4:08:11 PM)] FileManager: buildJar: completed
[debug (10/2/16 4:08:11 PM)] RunSetup: renaming sikulixtemp.jar to target jar: sikulixapi.jar
[debug (10/2/16 4:08:11 PM)] RunSetup: adding needed stuff to sikulix.jar
[debug (10/2/16 4:08:11 PM)] FileManager: buildJar: sikulixtemp.jar
[debug (10/2/16 4:08:11 PM)] FileManager: buildJar: adding: sikulix.jar
[debug (10/2/16 4:08:12 PM)] FileManager: buildJar: adding: sikulixapi.jar
[debug (10/2/16 4:08:14 PM)] FileManager: buildJar: adding: sikulixjython.jar
[debug (10/2/16 4:08:23 PM)] FileManager: buildJar: adding: sikulixlibswin.jar
[debug (10/2/16 4:08:25 PM)] FileManager: buildJar: completed
[debug (10/2/16 4:08:25 PM)] RunSetup: renaming sikulixtemp.jar to target jar: sikulix.jar
[debug (10/2/16 4:08:25 PM)] RunSetup: processing commandfiles
[debug (10/2/16 4:08:25 PM)] RunSetup: Trying to run functional test: JAVA-API
[debug (10/2/16 4:08:25 PM)] RunTimeSETUP: addToClasspath:
file:/D:/SikuliX/sikulixapi.jar
[debug (10/2/16 4:08:25 PM)] RunSetup: trying to run org.sikuli.script.Sikulix.testSetup()
[debug (10/2/16 4:08:25 PM)] RunSetup: class found: class org.sikuli.script.Sikulix
[debug (10/2/16 4:08:25 PM)] RunSetup: getMethod: public static boolean org.sikuli.script.Sikulix.testSetup()
[debug (10/2/16 4:08:30 PM)] RunSetup: invoke: public static boolean org.sikuli.script.Sikulix.testSetup()
[debug (10/2/16 4:08:30 PM)] RunTimeSETUP: exists libs folder at: C:\Users\MRB\AppData\Roaming\Sikulix\SikulixLibs_201510061722
[debug (10/2/16 4:08:30 PM)] RunTimeSETUP: addToWindowsSystemPath: added to systempath:
C:\Users\MRB\AppData\Roaming\Sikulix\SikulixLibs_201510061722
[debug (10/2/16 4:08:30 PM)] RunTimeSETUP: checkJavaUsrPath: added to ClassLoader.usrPaths
[debug (10/2/16 4:08:30 PM)] RunTimeSETUP: loadLib: VisionProxy.dll
[debug (10/2/16 4:08:30 PM)] Mouse: init
[debug (10/2/16 4:08:30 PM)] KeyBoard: init
[debug (10/2/16 4:08:30 PM)] Image: BufferedImage: (100, 100)
[debug (10/2/16 4:08:31 PM)] Finder: Image: __BufferedImage__: (100x100)
[debug (10/2/16 4:08:31 PM)] Sikulix: testSetup: Finder setup with image worked
[debug (10/2/16 4:08:31 PM)] FileManager: tempfile create:
C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-1289962339714724390.png
[debug (10/2/16 4:08:31 PM)] Image: loaded: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-1289962339714724390.png (file:/C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-1289962339714724390.png)
[debug (10/2/16 4:08:31 PM)] Image: cached: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-1289962339714724390.png (29 KB) (# 1 KB 29 -- 0 % of 64 MB)
[debug (10/2/16 4:08:31 PM)] Sikulix: testSetup: Finder setup with image file worked
[debug (10/2/16 4:08:31 PM)] Region: find: waiting 3.0 secs for C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-1289962339714724390.png to appear in S(0)[0,0 1366x768]
[debug (10/2/16 4:08:31 PM)] Image: reused: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-1289962339714724390.png (file:/C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-1289962339714724390.png)
[debug (10/2/16 4:08:31 PM)] Region: find: C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-1289962339714724390.png has appeared 
at M[0,0 100x100]@S(S(0)[0,0 1366x768]) S:1.00 C:50,50 [182 msec]
[debug (10/2/16 4:08:31 PM)] Sikulix: testSetup: Screen.find(imagefile) worked
[debug (10/2/16 4:08:31 PM)] Region: find: waiting 3.0 secs for C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-1289962339714724390.png to appear in S(0)[0,0 1366x768]
[debug (10/2/16 4:08:31 PM)] Image: reused: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-1289962339714724390.png (file:/C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-1289962339714724390.png)
[debug (10/2/16 4:08:31 PM)] Region: checkLastSeen: still there
[debug (10/2/16 4:08:31 PM)] Region: find: C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-1289962339714724390.png has appeared 
at M[0,0 100x100]@S(S(0)[0,0 1366x768]) S:1.00 C:50,50 [41 msec]
[debug (10/2/16 4:08:31 PM)] Sikulix: testSetup: repeated Screen.find(imagefile) worked
[debug (10/2/16 4:08:34 PM)] Sikulix: testSetup: Finder.find: worked
[debug (10/2/16 4:08:34 PM)] RunTimeSETUP: addToClasspath:
file:/D:/SikuliX/sikulix.jar
[debug (10/2/16 4:08:34 PM)] RunSetup: Jython: Trying to run functional test: running script statements via SikuliScript
[debug (10/2/16 4:08:39 PM)] ScriptingSupport: initScriptingSupport: enter
[debug (10/2/16 4:08:42 PM)] JythonSupport: init: starting
[debug (10/2/16 4:08:42 PM)] JythonSupport: init: success
[debug (10/2/16 4:08:42 PM)] JythonSupport: ***** Jython sys.path
 0: D:\SikuliX\sikulixapi.jar\Lib
 1: D:\SikuliX\Lib
 2: D:\SikuliX\sikulix.jar\Lib
 3: __classpath__
 4: __pyclasspath__/
[debug (10/2/16 4:08:42 PM)] JythonSupport: ***** Jython sys.path end
[debug (10/2/16 4:08:42 PM)] Jython: sikuli: Sikuli: starting init
[debug (10/2/16 4:08:42 PM)] RunTimeSETUP: loadLib: WinUtil.dll
[debug (10/2/16 4:08:42 PM)] Jython: requested to use as default region: R[0,0 1366x768]@S(0)
[debug (10/2/16 4:08:42 PM)] Jython: sikuli: Sikuli: ending init
[debug (10/2/16 4:08:42 PM)] JythonScriptRunner: running Jython 2.7.0 
[debug (10/2/16 4:08:42 PM)] ScriptingSupport: initScriptingSupport: added: jython
[debug (10/2/16 4:08:42 PM)] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython (py)
[debug (10/2/16 4:08:42 PM)] Jython: requested to use as default region: R[0,0 1366x768]@S(0)
[debug (10/2/16 4:08:43 PM)] JythonScriptRunner: runPython: running statements
[debug (10/2/16 4:08:43 PM)] Image: BufferedImage: (100, 100)
[debug (10/2/16 4:08:43 PM)] Finder: Image: __BufferedImage__: (100x100)
[debug (10/2/16 4:08:43 PM)] Sikulix: testSetup: Finder setup with image worked
[debug (10/2/16 4:08:43 PM)] FileManager: tempfile create:
C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-6179947310656402313.png
[debug (10/2/16 4:08:43 PM)] Image: loaded: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-6179947310656402313.png (file:/C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-6179947310656402313.png)
[debug (10/2/16 4:08:43 PM)] Image: cached: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-6179947310656402313.png (29 KB) (# 2 KB 58 -- 0 % of 64 MB)
[debug (10/2/16 4:08:43 PM)] Sikulix: testSetup: Finder setup with image file worked
[debug (10/2/16 4:08:43 PM)] Region: find: waiting 3.0 secs for C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-6179947310656402313.png to appear in S(0)[0,0 1366x768]
[debug (10/2/16 4:08:43 PM)] Image: reused: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-6179947310656402313.png (file:/C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-6179947310656402313.png)
[debug (10/2/16 4:08:43 PM)] Region: find: C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-6179947310656402313.png has appeared 
at M[0,0 100x100]@S(S(0)[0,0 1366x768]) S:1.00 C:50,50 [133 msec]
[debug (10/2/16 4:08:43 PM)] Sikulix: testSetup: Screen.find(imagefile) worked
[debug (10/2/16 4:08:43 PM)] Region: find: waiting 3.0 secs for C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-6179947310656402313.png to appear in S(0)[0,0 1366x768]
[debug (10/2/16 4:08:43 PM)] Image: reused: C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-6179947310656402313.png (file:/C:/Users/MRB/AppData/Local/Temp/Sikulix_921901351/sikuli-6179947310656402313.png)
[debug (10/2/16 4:08:43 PM)] Region: checkLastSeen: still there
[debug (10/2/16 4:08:43 PM)] Region: find: C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351\sikuli-6179947310656402313.png has appeared 
at M[0,0 100x100]@S(S(0)[0,0 1366x768]) S:1.00 C:50,50 [34 msec]
[debug (10/2/16 4:08:43 PM)] Sikulix: testSetup: repeated Screen.find(imagefile) worked
[debug (10/2/16 4:08:45 PM)] Sikulix: testSetup: Finder.find: worked
[debug (10/2/16 4:08:50 PM)] RunSetup: ... SikuliX Setup seems to have ended successfully ;-)
[debug (10/2/16 4:08:50 PM)] RunTimeSETUP: final cleanup
[debug (10/2/16 4:08:50 PM)] FileManager: deleteFileOrFolder:
C:\Users\MRB\AppData\Local\Temp\Sikulix_921901351

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.