← Back to team overview

sikuli-driver team mailing list archive

[Question #257341]: Running scripts from shell command line using jython (OS-X)

 

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

I’ve installed Sikuli IDE successfully on OS-X (Mavericks) and written scripts that work well
inside IDE.

ls /Applications/Sikuli-IDE.app/Contents/Resources/Java
commons-cli-1.2.jar junit-3.8.1.jar sikuli-script.jar
forms-1.2.1.jar mac_widgets.jar swing-layout-1.0.1.jar
json_simple-1.1.jar sikuli-ide.jar swingx-core-1.6.2.jar

I intalled jython2.7beta):

~/jython
expr: syntax error
Jython 2.7b3 (default:e81256215fb0, Aug 4 2014, 02:39:51)
[Java HotSpot™ 64-Bit Server VM (Oracle Corporation)] on java1.7.0_71
Type “help”, “copyright”, “credits” or “license” for more information.

However I am still unable to run any sikuli script from shell command line using python

I tried (where SIKULI_HOME =/Applications/Sikuli-IDE.app/Contents/Resources/Java)

/jython -jar $SIKULI_HOME/sikuli-script.jar ~/Documents/Sikuli/startGBand.sikuli/startGBand.py

where startGBand.py first few lines contain:
click(“WtaLad.png”)
click(“1415655585989.png”)
click(“Choose.png”)
wait(“F7FIIT1mi.png”,10)

but keep getting:

ValueError: jar file missing 'run.py'

It seems like there are missing python files (the thin python layer on top of Java the docs refer to) but where are they?
not anywhere under /Applications/Sikuli-IDE.app/ far as I can see. Or maybe some other problem?

I would greatly appreciate any help on this ! thanks

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