← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #260690]: Windows: Jython 2.7: using command line parameter -J-cp crashes with "SyntaxError: Non-ASCII character … in the given jar

 

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

Description changed to:
Has definitely nothing to do with SikuliX
see comment #3

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

On cmd I do:

C:\SikuliX_POC\calctest> jython -J-cp C:\sikulix_11\sikulixapi.jar
-Dpython.path=C:\SikuliX_11\sikulixapi.jar\Lib step_1/calclib/calc.py

And this is what I get:

File "<string>", line None
SyntaxError: Non-ASCII character in file 'C:\sikulix_11\sikulixapi.jar', but no
encoding declared; see http://www.python.org/peps/pep-0263.html for details
----END of ERROR---

The same error i get with the sikuli-java.jar of Sikuli 1.0.1
And also when doing just   > jython -J-cp c:\sikulix_11\sikulixapi.jar      the same error occurs.

The intention was to run the script calc.py without having defined the
path to Sikuli in the system properties as CLASSPATH environment
variable.

- I have no Non-ASCII characters in the paths and the script calc.py
- I´m running it on Windows 7 with Java 1.7.0_55 and Jython 2.7 beta3 (Jython 2.7b3)

Cheers
Tset Noitamotua

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