← Back to team overview

sikuli-driver team mailing list archive

[Bug 1639311] Re: Multi-line Comments gives Cannot create PyString with non-byte value

 

what version of Sikuli?

Not a Sikuli problem, but a Jython problem: Cannot create PyString with
non-byte value

probably some unicode characters in the comment.

** Changed in: sikuli
       Status: New => Opinion

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1639311

Title:
  Multi-line Comments  gives Cannot create PyString with non-byte value

Status in Sikuli:
  Opinion

Bug description:
  I am trying to create multiline comments to comment out  block of code
  using ''' and """. I have comments in same indent level as code above
  it. Both (''' and """) are giving me "Cannot create PyString with non-
  byte value" without any line number where the error is in the code.
  IDE should tell me where the error is with line number.

  [error] script [ My_Script ] stopped with error at line --unknown--

  Here is the full error report:

  [error] script [ My_Script] stopped with error at line --unknown--
  [error] Error caused by: 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.antlr.GrammarActions.extractStrings(GrammarActions.java:477) 
  at org.python.antlr.PythonParser.atom(PythonParser.java:10996) 
  at org.python.antlr.PythonParser.power(PythonParser.java:10363) 
  at org.python.antlr.PythonParser.factor(PythonParser.java:10290) 
  at org.python.antlr.PythonParser.term(PythonParser.java:9855) 
  at org.python.antlr.PythonParser.arith_expr(PythonParser.java:9581) 
  at org.python.antlr.PythonParser.shift_expr(PythonParser.java:9308) 
  at org.python.antlr.PythonParser.and_expr(PythonParser.java:9141) 
  at org.python.antlr.PythonParser.xor_expr(PythonParser.java:8978) 
  at org.python.antlr.PythonParser.expr(PythonParser.java:8814) 
  at org.python.antlr.PythonParser.compari

  son(PythonParser.java:8360) 
  at org.python.antlr.PythonParser.not_test(PythonParser.java:8287) 
  at org.python.antlr.PythonParser.and_test(PythonParser.java:8073) 
  at org.python.antlr.PythonParser.or_test(PythonParser.java:7911) 
  at org.python.antlr.PythonParser.test(PythonParser.java:7771) 
  at org.python.antlr.PythonParser.testlist(PythonParser.java:12705) 
  at org.python.antlr.PythonParser.expr_stmt(PythonParser.java:3127) 
  at org.python.antlr.PythonParser.small_stmt(PythonParser.java:2675) 
  at org.python.antlr.PythonParser.simple_stmt(PythonParser.java:2524) 
  at org.python.antlr.PythonParser.stmt(PythonParser.java:2438) 
  at org.python.antlr.PythonParser.suite(PythonParser.java:7652) 
  at org.python.antlr.PythonParser.funcdef(PythonParser.java:1506) 
  at org.python.antlr.PythonParser.compound_stmt(PythonParser.java:6218) 
  at org.python.antlr.PythonParser.stmt(PythonParser.java:2457) 
  at org.python.antlr.PythonParser.file_input(PythonParser.java:618) 
  at org.python.antlr.BaseParser.

  parseModule(BaseParser.java:78) 
  at org.python.core.CompileMode$3.dispatch(CompileMode.java:22) 
  at org.python.core.ParserFacade.parse(ParserFacade.java:158) 
  at org.python.core.ParserFacade.parse(ParserFacade.java:188) 
  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:207) 
  at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:175) 
  at org.sikuli.ide.SikuliIDE$ButtonRun$SubRun.run(SikuliIDE.java:2477) 
  at java.lang.Thread.run(Unknown Source) 

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1639311/+subscriptions


References