← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #272186]: double backslashes in printed strings --- is by convention (a \ must be escaped with a \ )

 

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

furni gave more information on the question:
i got an error only by writing #-*-coding:utf-8-*- at the first line in
the script

the error message is...
#######

[error] script [ FORTH ]] stopped with error at line --unknown--
[error] Could not evaluate error source nor reason. Analyze StackTrace!
[error] java.lang.IllegalArgumentException: Cannot create PyString with non-byte value 
at org.python.core.PyString.<init>(PyString.java:64) 
at org.python.core.PyString.<init>(PyString.java:70) 
at org.python.core.PySyntaxError.<init>(PySyntaxError.java:28) 
at org.python.core.ParserFacade.prepBufReader(ParserFacade.java:343) 
at org.python.core.ParserFacade.prepBufReader(ParserFacade.java:293) 
at org.python.core.ParserFacade.parse(ParserFacade.java:187) 
at org.python.core.Py.compile_flags(Py.java:1956) 
at org.python.core.__builtin__.execfile_flags(__builtin__.java:527) 
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:286) 
at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:208) 
at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:176) 
at org.sikuli.ide.SikuliIDE$Butt

onRun$1.run(SikuliIDE.java:2369)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:
Cannot create PyString with non-byte value

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