get error when running simple script

Asked by Rob German

I would greatly appreciate any help in getting Sikuli to run a script. I have a feeling it's a problem with the environmental variables, but I can't seem to figure out what the issue is. thank you! here are the issue details...

---------------

trying to run a simple one line script to click on the start button (windows 7)

I installed the latest version of Sikuli (as of 3.27.2012) from the installer. No previous version installed (clean install)

get the following error:

[info] Sikuli vision engine loaded.
[error] Stopped
[error] An error occurs at line 1
[error] Error message: Traceback (most recent call last):
 File "", line 1, in
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\__init__.py", line 3, in
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 26, in
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.(Win32Util.java:19)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.sikuli.script.Env.

getOSUtil(Env.java:91)
at org.sikuli.script.App.(App.java:9)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.python.core.Py.loadAndInitClass(Py.java:895)
at org.python.core.Py.findClassInternal(Py.java:830)
at org.python.core.Py.findClassEx(Py.java:881)
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:863)
at org.python.core.imp.import_name(imp.java:849)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1

173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at sikuli.Sikuli$py.f$0(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py:211)
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:386)
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:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.PyModule.impAttr(PyModule.java:100)
at org.python.core.imp.i

mport_next(imp.java:715)
at org.python.core.imp.import_name(imp.java:824)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importAll(imp.java:998)
at sikuli$py.f$0(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\__init__.py:3)
at sikuli$py.call_function(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\__init__.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:386)
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.P

yBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.imp.import_next(imp.java:713)
at org.python.core.imp.import_name(imp.java:824)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importAll(imp.java:998)
at org.python.pycode._pyx2.f$0(:1)
at org.python.pycode._pyx2.call_function()
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:1261)
at org.python.core.Py.exec(Py.java:1305)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:61)
at org.s

ikuli.ide.SikuliIDE$ButtonRun.runPython(SikuliIDE.java:1572)
at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:1677)

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

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--- I installed the latest version of Sikuli (as of 3.27.2012) from the installer
What version is this? not a standard identifier?

--- system path
C:\Program Files\Sikuli X\libs
must be in system path

Revision history for this message
Rob German (robert-german) said :
#2

I installed this: Sikuli-X-1.0rc3 (r905)-win32.exe

to be clear, do I have to create a new system path? I'm not familiar with the proper way to do this...

thanks for your resonse!

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

If you ran the above download, the installer should have set the path correctly.

To check, open a command window and write
set
and press enter.
check the PATH definition in the output.

You might try to run the Sikuli-IDE-w.bat from the Sikuli-X directory.

Revision history for this message
Sreekanth (sreekanth-challa27) said :
#4

Hi,
I am facing the same problem with r905 - win32.exe build. I've added "C:\Program Files\Sikuli X\libs" under PATH manually and run the simple command but still i am facing the same issue.
Do i need to setup anything with JRE. BTW i am running the sikuli IDE on Windows 2008 x86 environment. Does this have any limitation?

Regards,
Sreekanth

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

Did you try to run the Sikuli-IDE-w.bat from the Sikuli-X directory?

The path should contain C:\Program Files\Sikuli X\libs and C:\Program Files\Java\jre6\bin

Using Java 6 ? (Java 7 does not work with Sikuli)

Revision history for this message
Rob German (robert-german) said :
#6

the -w.bat did work. thanks! curious...why did this work and not the exe file?

Revision history for this message
Sreekanth (sreekanth-challa27) said :
#7

Hi,
w.bat file works for me too,thanks for your quick response.

Regards,
Sreekanth

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

they told so.

Revision history for this message
Filipe Alonso (filipe-alonso) said :
#9

 1. You must use a 32bit JRE version (I use jre-7u4-windows-i586.exe)
 2. Download Sikuli IDE for Windows (I use "Sikuli X r930", portable version)
 3. Unpack it and copy files to your project folder (I renamed it to "sikuli-ide", check image http://i.stack.imgur.com/LSiQV.png)
 4. Add sikuli-script.jar to the Referenced Libraries (Project > Properties > Java Build Path > Libraries, check image http://i.stack.imgur.com/N2SJ8.png)
 5. Set PATH and SIKULI_HOME environment vars (Run > Run Configurations > Environment, check image http://i.stack.imgur.com/HboXk.png)
 6. You're ready to go ;)

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

@ Filipe
... and again: your answer has nothing to do with this question.