Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/romance.rpy", line 8, in script
init python:
File "game/romance.rpy", line 11, in <module>
from more_itertools import collapse
SyntaxError: invalid syntax (python-packages/more_itertools/more.py, line 329)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/romance.rpy", line 8, in script
init python:
File "D:\Renpy\renpy\ast.py", line 881, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\Renpy\renpy\python.py", line 1913, in py_exec_bytecode
exec bytecode in globals, locals
File "game/romance.rpy", line 11, in <module>
from more_itertools import collapse
File "D:\Renpy\renpy\loader.py", line 744, in load_module
exec code in mod.__dict__
File "python-packages/more_itertools/__init__.py", line 1, in <module>
File "D:\Renpy\renpy\loader.py", line 743, in load_module
code = compile(source, filename, 'exec', renpy.python.old_compile_flags, 1)
SyntaxError: invalid syntax (python-packages/more_itertools/more.py, line 329)
Windows-7-6.1.7600
Ren'Py 7.1.3.1092
Hearthrob Love Guru 1.0
Mon Mar 18 16:50:47 2019
philat wrote: ↑Mon Mar 18, 2019 5:20 am
The module you linked to appears to require python 3.4 or later.
Oh, right. Renpy uses python 2.7 while the latest update of more-itertools no longer supports python 2.7. Thanks and I'll try to see if using a prior version would work.