[Solved] JAVA Python Error: Cannot create PyString with non-byte value

Error code
case 1.
interpreter.execfile (“your file path”)
reason for error reporting: your file was not found

Situation 2. New pystring (“your string”)
error reason: there is Chinese in the string
solution: replace new pystring (“your string”) with
pystring strjason = py.newstring (“your string”)
or pystring strjason = py.newstringorunicode (“your string”);

Read More: