can Sikuli run on window server 2003 ?

Asked by joe fu

when we try to install Sikuli on window server 2003, it says the OS is not supported.
can we still use it in window server 2003?

anything we need to do to make it work?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#1

I guess it should work.
Can you type the following lines of code and paste the result here so I can fix the problem?

print java.lang.System.getProperty("os.name")
print Env.getOS()
print Env.getOSVersion()

Revision history for this message
joe fu (jfu-yahoo) said :
#2

I see this issue when running any command in the sikuli IDE.
I already have the jre and sikuli libs path set in the Path environment variable.
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jre6\bin\;C:\GUITest\GUITest.sikuli\utils\Sikuli-X\libs\

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\GUITest\GUITest.sikuli\utils\Sikuli-X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 23, in <module>
java.lang.UnsatisfiedLinkError: C:\GUITest\GUITest.sikuli\utils\Sikuli-X\libs\Win32Util.dll: Can't find dependent libraries

 at java.lang.ClassLoader$NativeLibrary.load(Native Method)

 at java.lang.ClassLoader.loadLibrary0(Unknown Source)

 at java.lang.ClassLoader.loadLibrary(Unknown Source)

 at java.lang.Runtime.load0(Unknown Source)

 at java.lang.System.load(Unknown Source)

 at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)

 at org.sikuli.script.Win32Util.<clinit>(Win32Util.java:14)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Unknown Source)

 at org.sikuli.script.Env.getOSUtil(Env.java:82)

 at org.sikuli.script.App.<clinit>(App.java:4)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Unknown Source)

 at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java:107)

 at java.lang.ClassLoader.loadClass(Unknown Source)

 at org.python.core.Py.findClassEx(Py.java:817)

 at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)

 at org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)

 at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)

 at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)

 at org.python.core.PyObject.__findattr__(PyObject.java:869)

 at org.python.core.imp.import_name(imp.java:771)

 at org.python.core.imp.importName(imp.java:806)

 at org.python.core.ImportFunction.__call__(__builtin__.java:1232)

 at org.python.core.PyObject.__call__(PyObject.java:367)

 at org.python.core.__builtin__.__import__(__builtin__.java:1202)

 at org.python.core.imp.importFromAs(imp.java:884)

 at org.python.core.imp.importFrom(imp.java:860)

 at sikuli.Sikuli$py.f$0(C:\GUITest\GUITest.sikuli\utils\Sikuli-X\sikuli-script.jar\Lib\sikuli\Sikuli.py:183)

 at sikuli.Sikuli$py.call_function(C:\GUITest\GUITest.sikuli\utils\Sikuli-X\sikuli-script.jar\Lib\sikuli\Sikuli.py)

 at org.python.core.PyTableCode.call(PyTableCode.java:165)

 at org.python.core.PyCode.call(PyCode.java:18)

 at org.python.core.imp.createFromCode(imp.java:326)

 at org.python.core.util.importer.importer_load_module(importer.java:109)

 at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)

 at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)

 at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)

 at org.python.core.imp.loadFromLoader(imp.java:451)

 at org.python.core.imp.find_module(imp.java:408)

 at org.python.core.PyModule.impAttr(PyModule.java:109)

 at org.python.core.imp.import_next(imp.java:637)

 at org.python.core.imp.import_logic(imp.java:699)

 at org.python.core.imp.import_name(imp.java:761)

 at org.python.core.imp.importName(imp.java:806)

 at org.python.core.ImportFunction.__call__(__builtin__.java:1232)

 at org.python.core.PyObject.__call__(PyObject.java:367)

 at org.python.core.__builtin__.__import__(__builtin__.java:1202)

 at org.python.core.__builtin__.__import__(__builtin__.java:1185)

 at org.python.core.imp.importAll(imp.java:904)

 at org.python.pycode._pyx2.f$0(<string>:1)

 at org.python.pycode._pyx2.call_function(<string>)

 at org.python.core.PyTableCode.call(PyTableCode.java:165)

 at org.python.core.PyCode.call(PyCode.java:18)

 at org.python.core.Py.runCode(Py.java:1204)

 at org.python.core.Py.exec(Py.java:1248)

 at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)

 at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:52)

 at org.sikuli.ide.SikuliIDE$ButtonRun.runPython(SikuliIDE.java:1262)

 at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:1367)

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\GUITest\GUITest.sikuli\utils\Sikuli-X\libs\Win32Util.dll: Can't find dependent libraries

Revision history for this message
RaiMan (raimund-hocke) said :
#3
Revision history for this message
RaiMan (raimund-hocke) said :
#4
Revision history for this message
joe fu (jfu-yahoo) said :
#5

Hi Tsung-Hsiang,

to respond to your request for this, i got the info below
print java.lang.System.getProperty("os.name")
print Env.getOS()
print Env.getOSVersion()

Windows 2003
WINDOWS
5.2

I can manage to install Sikuli in the Windows server 2003 and launch sikuli successfully with the Sikuli-IDE.exe and can run test on it.

However it won't work if I launch it with Sikuli-IDE.bat, even though I can launch the IDE, it'll complain with the runtime error if I do anything in the IDE...
Any clue?

Runtime Error when running C:\GUITest\GUITest.sikuli
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 23, in <module>
java.lang.UnsatisfiedLinkError: C:\Program Files\Sikuli X\libs\Win32Util.dll: Can't find dependent libraries

 at java.lang.ClassLoader$NativeLibrary.load(Native Method)

 at java.lang.ClassLoader.loadLibrary0(Unknown Source)

 at java.lang.ClassLoader.loadLibrary(Unknown Source)

 at java.lang.Runtime.load0(Unknown Source)

 at java.lang.System.load(Unknown Source)

 at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)

 at org.sikuli.script.Win32Util.<clinit>(Win32Util.java:14)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Unknown Source)

 at org.sikuli.script.Env.getOSUtil(Env.java:82)

 at org.sikuli.script.App.<clinit>(App.java:4)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Unknown Source)

 at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java:107)

 at java.lang.ClassLoader.loadClass(Unknown Source)

 at org.python.core.Py.findClassEx(Py.java:817)

 at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)

 at org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)

 at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)

 at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)

 at org.python.core.PyObject.__findattr__(PyObject.java:869)

 at org.python.core.imp.import_name(imp.java:771)

 at org.python.core.imp.importName(imp.java:806)

 at org.python.core.ImportFunction.__call__(__builtin__.java:1232)

 at org.python.core.PyObject.__call__(PyObject.java:367)

 at org.python.core.__builtin__.__import__(__builtin__.java:1202)

 at org.python.core.imp.importFromAs(imp.java:884)

 at org.python.core.imp.importFrom(imp.java:860)

 at sikuli.Sikuli$py.f$0(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py:183)

 at sikuli.Sikuli$py.call_function(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py)

 at org.python.core.PyTableCode.call(PyTableCode.java:165)

 at org.python.core.PyCode.call(PyCode.java:18)

 at org.python.core.imp.createFromCode(imp.java:326)

 at org.python.core.util.importer.importer_load_module(importer.java:109)

 at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)

 at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)

 at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)

 at org.python.core.imp.loadFromLoader(imp.java:451)

 at org.python.core.imp.find_module(imp.java:408)

 at org.python.core.PyModule.impAttr(PyModule.java:109)

 at org.python.core.imp.import_next(imp.java:637)

 at org.python.core.imp.import_logic(imp.java:699)

 at org.python.core.imp.import_name(imp.java:761)

 at org.python.core.imp.importName(imp.java:806)

 at org.python.core.ImportFunction.__call__(__builtin__.java:1232)

 at org.python.core.PyObject.__call__(PyObject.java:367)

 at org.python.core.__builtin__.__import__(__builtin__.java:1202)

 at org.python.core.__builtin__.__import__(__builtin__.java:1185)

 at org.python.core.imp.importAll(imp.java:904)

 at org.python.pycode._pyx2.f$0(<string>:1)

 at org.python.pycode._pyx2.call_function(<string>)

 at org.python.core.PyTableCode.call(PyTableCode.java:165)

 at org.python.core.PyCode.call(PyCode.java:18)

 at org.python.core.Py.runCode(Py.java:1204)

 at org.python.core.Py.exec(Py.java:1248)

 at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)

 at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:52)

 at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:87)

 at org.sikuli.ide.SikuliIDE.runSikuli(SikuliIDE.java:635)

 at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:723)

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\Program Files\Sikuli X\libs\Win32Util.dll: Can't find dependent libraries

Revision history for this message
RaiMan (raimund-hocke) said :
#6

This might be the general problem, that

path-to-java/jre6/bin

is missing in system path.

Revision history for this message
joe fu (jfu-yahoo) said :
#7

I've included the path-to-java/jre6/bin in the system path and the issue still happens in the win 2003 machine.
For some reason, Sikuli-IDE.bat still doesn't work. It only works on Sikuli-IDE.exe.
do I need to restart the machine to make it work? which I haven't tried.

Revision history for this message
RaiMan (raimund-hocke) said :
#8

the standard .bat adds the path-to-sikuli/libs entry to the system path, each time it is run.

so if you have any special path situation on your machine, remove the PATH= statement and set the system path and the other path specifications manually.

what is really needed in a .bat or .cmd, to try it out, is this, :
(supposed java.exe is found with system path and and system path contains path-to-sikuli/libs;path-to-java\jre6\bin)
java -Dpython.path="path-to-sikuli\sikuli-script.jar/" -jar "path-to-sikuli\sikuli-ide.jar" %*

Only to be sure and pls.do not blame me for saying this:
path-to-sikuli and path-to-java have to be adjusted to the according path's on your system ;-)

Can you help with this problem?

Provide an answer of your own, or ask joe fu for more information if necessary.

To post a message you must log in.