erew123 / alltalk_tts

AllTalk is based on the Coqui TTS engine, similar to the Coqui_tts extension for Text generation webUI, however supports a variety of advanced features, such as a settings page, low VRAM support, DeepSpeed, narrator, model finetuning, custom models, wav file maintenance. It can also be used with 3rd Party software via JSON calls.
GNU Affero General Public License v3.0
1.12k stars 114 forks source link

Urgent nvidia.Dockerfile gives an error no module named exceptiongroup #180

Closed ehsanahmadkhan525 closed 7 months ago

ehsanahmadkhan525 commented 7 months ago

Traceback (most recent call last): File "/usr/local/bin/uvicorn", line 8, in sys.exit(main()) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/uvicorn/main.py", line 409, in main run( File "/usr/local/lib/python3.10/dist-packages/uvicorn/main.py", line 575, in run server.run() File "/usr/local/lib/python3.10/dist-packages/uvicorn/server.py", line 65, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/usr/local/lib/python3.10/dist-packages/uvicorn/server.py", line 69, in serve await self._serve(sockets) File "/usr/local/lib/python3.10/dist-packages/uvicorn/server.py", line 76, in _serve config.load() File "/usr/local/lib/python3.10/dist-packages/uvicorn/config.py", line 433, in load self.loaded_app = import_from_string(self.app) File "/usr/local/lib/python3.10/dist-packages/uvicorn/importer.py", line 22, in import_from_string raise exc from None File "/usr/local/lib/python3.10/dist-packages/uvicorn/importer.py", line 19, in import_from_string module = importlib.import_module(module_str) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/app/tts_server.py", line 16, in from fastapi import ( File "/usr/local/lib/python3.10/dist-packages/fastapi/init.py", line 7, in from .applications import FastAPI as FastAPI File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 16, in from fastapi import routing File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 22, in from fastapi import params File "/usr/local/lib/python3.10/dist-packages/fastapi/params.py", line 5, in from fastapi.openapi.models import Example File "/usr/local/lib/python3.10/dist-packages/fastapi/openapi/models.py", line 4, in from fastapi._compat import ( File "/usr/local/lib/python3.10/dist-packages/fastapi/_compat.py", line 24, in from starlette.datastructures import UploadFile File "/usr/local/lib/python3.10/dist-packages/starlette/datastructures.py", line 7, in from starlette.concurrency import run_in_threadpool File "/usr/local/lib/python3.10/dist-packages/starlette/concurrency.py", line 8, in import anyio.to_thread File "/usr/local/lib/python3.10/dist-packages/anyio/init.py", line 27, in from ._core._sockets import connect_tcp as connect_tcp File "/usr/local/lib/python3.10/dist-packages/anyio/_core/_sockets.py", line 35, in from exceptiongroup import ExceptionGroup ModuleNotFoundError: No module named 'exceptiongroup'

df: /root/.triton/autotune: No such file or directory

ehsanahmadkhan525 commented 7 months ago

when i try to build an image from a dockerfile it gives this error i am just copying my models folder to the dockerfile evereything else is the same.

erew123 commented 7 months ago

Hi @ehsanahmadkhan525

I would like to draw your attention to the statement on the front page https://github.com/erew123/alltalk_tts?tab=readme-ov-file#-docker-builds-and-google-colabs

image

I am aware of various difficulties and issues with Docker builds as AllTalk has been updated over time. I am not a Docker expert and I'm focusing my attention updating AllTalk in a way that will ensure things are alleviated on Docker, Google colab etc as well as bring in new features.

That aside, I have updated the docker requirements file for you. This is for Nvidia systems only. You will need to update AllTalk on your system with a git pull

You can then on that system build a docker image with docker build -t alltalk:v1-9c . from within the AllTalk folder.

You can run the docker image with docker-compose up -d from within the AllTalk folder.

Stop it with docker-compose stop

View its logs with docker-compose logs

As mentioned this is for Nvidia based GPU systems. It takes a while to start up first time as it will compile DeepSpeed. I am not testing this in depth as I'm focused elsewhere for now.

Thanks

ehsanahmadkhan525 commented 7 months ago

Thank you so much for the quick response I really appreciate it. You have helped me a lot. Best Regards