← Back to team overview

sikuli-driver team mailing list archive

[Question #294479]: ubuntu/linux command line execution failures

 

New question #294479 on Sikuli:
https://answers.launchpad.net/sikuli/+question/294479

I've managed to install sikulix 1.1.0 on a very fresh ubuntu install and can edit and run scripts through the GUI IDE. I need to use keypress event handling to toggle my script on and off but I couldn't find a way to do that in Sikkuli, so I want to use AutoKey to execute the sikuli script using subprocess.Popen()
However, I can't get the sikuli script to execute in the terminal. 
The command 'bash runsikulix -r "/home/Documents/auto-script.sikuli"' returns "[error] FileManager: Not a valid Sikuli script project"
After digging around I ran 'sudo apt-get install sikuli-ide' to get the sikuli-script and sikuli-ide that I read about but couldn't find.
However, the command 'java -jar /usr/share/java/sikuli-script.jar "/home/Documents/auto-script.sikuli"' gives the following:

Exception in thread "main" java.lang.NoClassDefFoundError: org/python/util/PythonInterpreter
    at org.sikuli.script.ScriptRunner.init(ScriptRunner.java:32)
    at org.sikuli.script.ScriptRunner.<init>(ScriptRunner.java:28)
    at org.sikuli.script.SikuliScript.main(SikuliScript.java:110)
Caused by: java.lang.ClassNotFoundException: org.python.util.PythonInterpreter
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 3 more

and 'java -jar /usr/share/sikuli/sikuli-ide.jar -r  "/home/Documents/auto-script.sikuli"' give the following:

Error: A JNI error has occured, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/swingx/JXTaskPaneContainer
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.getMethod0(Class.java:3015)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.swingx.JXTaskPaneContainer
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more



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