-
Notifications
You must be signed in to change notification settings - Fork 94
Description
So I've been running v3.9.5 on my main server and haven't updated. I installed a server for testing and installed v3.10.0 locally (using the commands from installation guide). Now on the new up to date server I see that there is now an audio player on every book. There is an error on the terminal when loading a book every time about Openai not being implemented correctly. I'm guessing that this is what is making the audio player show even when the book has no audio
ERROR:lute.app_factory:Exception on /read/tts/1/1 [GET] Traceback (most recent call last): File "/home/cody/my_lute/myenv/lib/python3.13/site-packages/flask/app.py", line 1511, in wsgi_app response = self.full_dispatch_request() File "/home/cody/my_lute/myenv/lib/python3.13/site-packages/flask/app.py", line 919, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/cody/my_lute/myenv/lib/python3.13/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() File "/home/cody/my_lute/myenv/lib/python3.13/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/cody/my_lute/myenv/lib/python3.13/site-packages/lute/read/routes.py", line 315, in tts engine = get_tts_engine_for_language(book.language_id) File "/home/cody/my_lute/myenv/lib/python3.13/site-packages/lute/tts/registry.py", line 47, in get_tts_engine_for_language return __TTS_ENGINES__[default_engine]() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/cody/my_lute/myenv/lib/python3.13/site-packages/lute/tts/openai.py", line 23, in __init__ self.client = OpenAI() ^^^^^^ NameError: name 'OpenAI' is not defined