asadfgglie / voicevox_tts

voicevox-tts for text-generation-ui extension
4 stars 0 forks source link

gradio error when oobabooga UI loads #1

Open RandomInternetPreson opened 10 months ago

RandomInternetPreson commented 10 months ago

Hello, thank you for your hard work on a very interesting extension. I'm trying it out but am having issues enabling the extension once everything is installed. I have voicevox_engine installed, I can see that the server is running when I enable the extension in oobabooga.

Oobabooga seems to load up, but once the UI begins to load I get the following error:


bin L:\OobOct24\text-generation-webui-main\installer_files\env\Lib\site-packages\bitsandbytes\libbitsandbytes_cuda121.dll 2023-10-31 18:14:39 INFO:Loading the extension "gallery"... Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Closing server running on port: 7860 2023-10-31 18:14:47 INFO:Loading the extension "gallery"... 2023-10-31 18:14:47 INFO:Loading the extension "voicevox_tts"... Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). 2023-10-31 18:14:49 ERROR:Task exception was never retrieved future: <Task finished name='Task-376' coro=<Queue.start_processing() done, defined at L:\OobOct24\text-generation-webui-main\installer_files\env\Lib\site-packages\gradio\queueing.py:127> exception=TypeError("'NoneType' object does not support the asynchronous context manager protocol")> Traceback (most recent call last): File "L:\OobOct24\text-generation-webui-main\installer_files\env\Lib\site-packages\gradio\queueing.py", line 137, in start_processing async with self.delete_lock: TypeError: 'NoneType' object does not support the asynchronous context manager protocol

I think it's a gradio issue, the developer of edge_tts ran into the same issue I believe: https://github.com/oobabooga/text-generation-webui/issues/4267#issuecomment-1765095911

The issue in the oobabooga git repo was very similar to what I was having and the dev of edge_tts made the changes here to their code: https://github.com/BuffMcBigHuge/text-generation-webui-edge-tts/commit/2d4be1426290f39906519e7a92c62daa9fc551ad

I tried looking at your code to see if I could make similar changes but I don't know what to do exactly.

Thanks for the cool looking extension, hopefully I will get it working soon :3

asadfgglie commented 10 months ago

I think it's a gradio issue, too. Now I'm fixing this bug. You can update the plugin. This bug occur when gradio creating html page, my plugin use async with to load speak info. I use Thread to create a new thread to avoid that. Thanks for your report!