← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #223387]: how to start sikuli on command line using it with Hudson

 

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

Description changed to:
Hi All

https://answers.launchpad.net/sikuli/+question/153455 DOES NOT solve our issue
We don't have Tomcat to deal with; we're using Hudson slave.jar here.

We added to Env Variable PATH this - C:\software_installations\sikuli\libs
And we still get error - after following the instruction in another thread on this issue.

>From hudson job output:

Building remotely on slave10_windows
c:\hudson\workspace\IM_install>C:\jre6u41_32bit\bin\java.exe -jar C:\software_installations\sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar C:\Users\rrr\Desktop\sikuli-tests\helloworld.sikuli 
[error] Can't run this Sikuli script: C:\Users\rrr\Desktop\sikuli-tests\helloworld.sikuli
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\software_installations\sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\__init__.py", line 3, in <module>
  File "C:\software_installations\sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 22, in <module>
java.lang.UnsatisfiedLinkError: C:\Users\rrr\AppData\Local\Temp\tmplib\VisionProxy.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.Finder.<clinit>(Finder.java:33)

        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:1173)

        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:\software_installations\sikuli-r930-win32\Sikuli-r930-win32
\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\Sikuli.py:212)

        at
sikuli.Sikuli$py.call_function(C:\software_installations\sikuli-r930-win32\Sikuli-r930-win32
\Sikuli-IDE\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.import_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:\software_installations\sikuli-r930-win32\Sikuli-r930-win32
\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\__init__.py:3)

        at
sikuli$py.call_function(C:\software_installations\sikuli-r930-win32\Sikuli-r930-win32
\Sikuli-IDE\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.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.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(<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: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:64)

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

        at org.sikuli.script.SikuliScript.main(SikuliScript.java:115)


java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\Users\rrr\AppData\Local\Temp\tmplib\VisionProxy.dll: Can't find dependent libraries


What are we doing wrong ?


We tried another approach and it still doesnt work

c:\hudson\workspace\IM_install>C:\software_installations\sikuli\Sikuli-IDE-w.bat -r        C:\Users\rrr\Desktop\sikuli-tests\helloworld.sikuli 
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[info] locale: en_US
Process leaked file descriptors. See http://wiki.hudson-ci.org/display/HUDSON/Spawning+processes+from+build for more information
[install_scripts] $ cmd.exe /C '"c:\hudson\tools\Ant_1.8.2\bin\ant.bat -file install-build.xml INSTALL && exit %%ERRORLEVEL%%"'


thanks

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.