Can't start on Linux, TypeError: must be string, not unicode
Posted: Wed May 23, 2012 6:26 pm
edit: My solution: http://ks.renai.us/viewtopic.php?f=45&t ... 29#p122529
Here's what running it as normal looks like:
Here's what running it with the system Python 2.7 (with Ren'Py et al installed as well) looks like:
And here's what running it with the latest version of py4renpy (6.11.2) replacing the bundled version looks like:
Those last two were just stabs in the dark at trying to fix it. Has anyone else encountered or worked around this issue?
edit: Arch Linux 64, by the way.
Here's what running it as normal looks like:
Code: Select all
[lifning@agatha Katawa Shoujo-linux-x86]$ ./Katawa\ Shoujo.sh
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/bootstrap.py", line 260, in bootstrap
renpy.main.main()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/main.py", line 173, in main
game.script = renpy.script.load_script()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 480, in load_script
rv = Script()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 160, in __init__
self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 373, in load_appropriate_file
if self.load_file(dir, fn + compiled, initcode):
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 340, in load_file
self.update_bytecode()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 429, in update_bytecode
code = renpy.python.py_compile_exec_bytecode(i.source, filename=i.location[0], lineno=i.location[1])
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/python.py", line 254, in py_compile_exec_bytecode
code = py_compile(source, 'exec', **kwargs)
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/python.py", line 251, in py_compile
return cg.getCode()
File "py4renpy-6.10.1/linux-x86/lib/python2.5/compiler/pycodegen.py", line 245, in getCode
File "py4renpy-6.10.1/linux-x86/lib/python2.5/compiler/pyassem.py", line 370, in getCode
File "py4renpy-6.10.1/linux-x86/lib/python2.5/compiler/pyassem.py", line 475, in convertArgs
File "py4renpy-6.10.1/linux-x86/lib/python2.5/compiler/pyassem.py", line 511, in _convert_LOAD_CONST
File "py4renpy-6.10.1/linux-x86/lib/python2.5/compiler/pycodegen.py", line 245, in getCode
File "py4renpy-6.10.1/linux-x86/lib/python2.5/compiler/pyassem.py", line 374, in getCode
File "py4renpy-6.10.1/linux-x86/lib/python2.5/compiler/pyassem.py", line 603, in newCodeObject
TypeError: code() argument 9 must be string, not unicode
While compiling python block starting at line 7 of common/00atl.rpy.
Code: Select all
[lifning@agatha Katawa Shoujo-linux-x86]$ python2.7 Katawa\ Shoujo.py
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/bootstrap.py", line 260, in bootstrap
renpy.main.main()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/main.py", line 173, in main
game.script = renpy.script.load_script()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 480, in load_script
rv = Script()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 160, in __init__
self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 373, in load_appropriate_file
if self.load_file(dir, fn + compiled, initcode):
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 340, in load_file
self.update_bytecode()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 429, in update_bytecode
code = renpy.python.py_compile_exec_bytecode(i.source, filename=i.location[0], lineno=i.location[1])
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/python.py", line 254, in py_compile_exec_bytecode
code = py_compile(source, 'exec', **kwargs)
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/python.py", line 251, in py_compile
return cg.getCode()
File "/usr/lib/python2.7/compiler/pycodegen.py", line 248, in getCode
return self.graph.getCode()
File "/usr/lib/python2.7/compiler/pyassem.py", line 311, in getCode
self.convertArgs()
File "/usr/lib/python2.7/compiler/pyassem.py", line 416, in convertArgs
self.insts[i] = opname, conv(self, oparg)
File "/usr/lib/python2.7/compiler/pyassem.py", line 452, in _convert_LOAD_CONST
arg = arg.getCode()
File "/usr/lib/python2.7/compiler/pycodegen.py", line 248, in getCode
return self.graph.getCode()
File "/usr/lib/python2.7/compiler/pyassem.py", line 315, in getCode
return self.newCodeObject()
File "/usr/lib/python2.7/compiler/pyassem.py", line 544, in newCodeObject
tuple(self.cellvars))
TypeError: must be string, not unicode
While compiling python block starting at line 7 of common/00atl.rpy.
Code: Select all
[lifning@agatha Katawa Shoujo-linux-x86]$ ./Katawa\ Shoujo.sh
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/bootstrap.py", line 260, in bootstrap
renpy.main.main()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/main.py", line 173, in main
game.script = renpy.script.load_script()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 480, in load_script
rv = Script()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 160, in __init__
self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 373, in load_appropriate_file
if self.load_file(dir, fn + compiled, initcode):
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 340, in load_file
self.update_bytecode()
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/script.py", line 429, in update_bytecode
code = renpy.python.py_compile_exec_bytecode(i.source, filename=i.location[0], lineno=i.location[1])
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/python.py", line 254, in py_compile_exec_bytecode
code = py_compile(source, 'exec', **kwargs)
File "/home/lifning/Desktop/Katawa Shoujo-linux-x86/renpy/python.py", line 251, in py_compile
return cg.getCode()
File "py4renpy-6.11.2/linux-x86/lib/python2.6/compiler/pycodegen.py", line 247, in getCode
File "py4renpy-6.11.2/linux-x86/lib/python2.6/compiler/pyassem.py", line 370, in getCode
File "py4renpy-6.11.2/linux-x86/lib/python2.6/compiler/pyassem.py", line 475, in convertArgs
File "py4renpy-6.11.2/linux-x86/lib/python2.6/compiler/pyassem.py", line 511, in _convert_LOAD_CONST
File "py4renpy-6.11.2/linux-x86/lib/python2.6/compiler/pycodegen.py", line 247, in getCode
File "py4renpy-6.11.2/linux-x86/lib/python2.6/compiler/pyassem.py", line 374, in getCode
File "py4renpy-6.11.2/linux-x86/lib/python2.6/compiler/pyassem.py", line 603, in newCodeObject
TypeError: code() argument 9 must be string, not unicode
While compiling python block starting at line 7 of common/00atl.rpy.
edit: Arch Linux 64, by the way.