sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18169
[Question #229395]: Script can not run in command line with 1.0 GA
New question #229395 on Sikuli:
https://answers.launchpad.net/sikuli/+question/229395
I use 64bit Windows 7 and installed 64bit Java, below is my command:
C:\Users\John\Desktop>java -cp E:\Sikuli-IDE-1.0.0-Win64\sikuli-script.jar org.python.util.jython demo.py
Content of demo.py:
from sikuli.Sikuli import *
print "hello"
After I input the command, I got below error. Why it can not work?
[error] org.sikuli.script.FileManager.loadLibrary: Native library could not be l
oaded: WinUtil
[error] Since native library was found, it might be a problem with needed depend
ent libraries
java.lang.UnsatisfiedLinkError: E:\Sikuli-IDE-1.0.0-Win64\libs\WinUtil.dll: %1 i
s not a valid Win32 application
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
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 org.sikuli.script.FileManager.loadLibrary(Unknown Source)
at org.sikuli.system.WinUtil.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.sikuli.script.Settings.getOSUtil(Unknown Source)
at org.sikuli.script.App.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.python.core.Py.loadAndInitClass(Py.java:909)
at org.python.core.Py.findClassInternal(Py.java:844)
at org.python.core.Py.findClassEx(Py.java:895)
at org.python.core.packagecache.SysPackageManager.findClass(SysPackageMa
nager.java:133)
at org.python.core.packagecache.PackageManager.findClass(PackageManager.
java:28)
at org.python.core.packagecache.SysPackageManager.findClass(SysPackageMa
nager.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.importFromAs(imp.java:1015)
at org.python.core.imp.importFrom(imp.java:987)
at sikuli.Sikuli$py.f$0(E:\Sikuli-IDE-1.0.0-Win64\sikuli-script.jar\Lib\
sikuli\Sikuli.py:237)
at sikuli.Sikuli$py.call_function(E:\Sikuli-IDE-1.0.0-Win64\sikuli-scrip
t.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:391)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipi
mporter.java:161)
at org.python.modules.zipimport.zipimporter$zipimporter_load_module_expo
ser.__call__(Unknown Source)
at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.
java:47)
at org.python.core.imp.loadFromLoader(imp.java:518)
at org.python.core.imp.find_module(imp.java:472)
at org.python.core.PyModule.impAttr(PyModule.java:100)
at org.python.core.imp.import_next(imp.java:720)
at org.python.core.imp.import_module_level(imp.java:827)
at org.python.core.imp.importName(imp.java:917)
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:1037)
at sikuli$py.f$0(E:\Sikuli-IDE-1.0.0-Win64\sikuli-script.jar\Lib\sikuli\
__init__.py:3)
at sikuli$py.call_function(E:\Sikuli-IDE-1.0.0-Win64\sikuli-script.jar\L
ib\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:391)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipi
mporter.java:161)
at org.python.modules.zipimport.zipimporter$zipimporter_load_module_expo
ser.__call__(Unknown Source)
at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.
java:47)
at org.python.core.imp.loadFromLoader(imp.java:518)
at org.python.core.imp.find_module(imp.java:472)
at org.python.core.imp.import_next(imp.java:718)
at org.python.core.imp.import_module_level(imp.java:827)
at org.python.core.imp.importName(imp.java:917)
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:1037)
at org.python.pycode._pyx0.f$0(testj.py:3)
at org.python.pycode._pyx0.call_function(testj.py)
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:1275)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:235
)
at org.python.util.jython.run(jython.java:247)
at org.python.util.jython.main(jython.java:129)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.