Open SwordShaman opened 1 year ago
according to the python documentation, audioop is a module that has been deprecated since python 3.11, most recent version, and will be deleted on 3.13. apparently it has no replacement?
renpy 8 uses python 3, while renpy 7 used 2.7, so i'm guessing that's why.
EDIT: While trying to fix this issue (updated pydub, in pyaudioop.py: fractions is deprecated and already imports math), the game compiles but throws this error every time a line should have animalese voice.
While running game code: File "game/script.rpy", line 32, in script e "Hello, welcome to the Ren'py \"Animalese\" textgarble generator!" File "game/script.rpy", line 10, in e build_sentence(_last_say_what, "eileen") File "game/speak.rpy", line 56, in build_sentence sentence_wav += new_segment TypeError: 0.0
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 32, in script
e "Hello, welcome to the Ren'py \"Animalese\" textgarble generator!"
File "C:[...]\renpy-8.0.3-sdk\renpy\ast.py", line 921, in execute
renpy.exports.say(who, what, *args, *kwargs)
File "C:[...]\renpy-8.0.3-sdk\renpy\exports.py", line 1373, in say
who(what, args, kwargs)
File "C:[...]\renpy-8.0.3-sdk\renpy\character.py", line 1266, in call
self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, display_args)
File "C:[...]\renpy-8.0.3-sdk\renpy\character.py", line 927, in do_display
display_say(who,
File "C:[...]\renpy-8.0.3-sdk\renpy\character.py", line 602, in display_say
c("show", interact=interact, type=type, **cb_args)
File "game/script.rpy", line 10, in e
build_sentence(_last_say_what, "eileen")
File "game/speak.rpy", line 56, in build_sentence
sentence_wav += new_segment
File "pydub/audio_segment.py", line 364, in add
File "pydub/audio_segment.py", line 1192, in append
File "pydub/audio_segment.py", line 440, in _sync
File "pydub/audio_segment.py", line 441, in
Windows-10-10.0.19041 AMD64 Ren'Py 8.0.3.22090809 Animalese 1.0
Currently getting the following when loading with my project in RenPy v8.0.3
I'm sorry, but an uncaught exception occurred.
While running game code: File "game/speak.rpy", line 8, in script init python: File "game/speak.rpy", line 8, in script init python: File "game/speak.rpy", line 11, in
import pydub
ModuleNotFoundError: No module named 'audioop'
-- Full Traceback ------------------------------------------------------------
Full traceback: File "C:\Game Dev\Engines\RenPy\renpy\bootstrap.py", line 277, in bootstrap renpy.main.main() File "C:\Game Dev\Engines\RenPy\renpy\main.py", line 558, in main renpy.game.context().run(node) File "game/speak.rpy", line 8, in script init python: File "/home/tom/ab/renpy-build/tmp/install.linux-x8664/lib/python3.9/site-packages/future/utils/init.py", line 441, in raise File "game/speak.rpy", line 8, in script init python: File "C:\Game Dev\Engines\RenPy\renpy\ast.py", line 1131, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "C:\Game Dev\Engines\RenPy\renpy\python.py", line 1061, in py_exec_bytecode exec(bytecode, globals, locals) File "game/speak.rpy", line 11, in
import pydub
File "C:\Game Dev\Engines\RenPy\renpy\loader.py", line 1007, in load_module
exec(code, mod.dict) # type: ignore
File "pydub/init.py", line 1, in
File "C:\Game Dev\Engines\RenPy\renpy\loader.py", line 1007, in load_module
exec(code, mod.dict) # type: ignore
File "pydub/audio_segment.py", line 7, in
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/wave.py", line 76, in
ModuleNotFoundError: No module named 'audioop'