neonbjb / tortoise-tts

A multi-voice TTS system trained with an emphasis on quality
Apache License 2.0
13.14k stars 1.82k forks source link

šŸ’€šŸ’€šŸ’€ Docker Container will not compile #779

Open PeterTucker opened 5 months ago

PeterTucker commented 5 months ago
peter@GIBSON-WIN10-VM:~/tortoise-tts$ docker pull ghcr.io/coqui-ai/tts
Using default tag: latest
latest: Pulling from coqui-ai/tts
aece8493d397: Already exists
5e3b7ee77381: Pull complete
5bd037f007fd: Pull complete
4cda774ad2ec: Pull complete
775f22adee62: Pull complete                                                                                                                                                                                      06d049a7f568: Pull complete
8326df7fffe2: Extracting [===============>                                   ]  40.67MB/129.7MB
90000714d5d2: Download complete                                                                                                                                                                                  41168eb568ed: Downloading [=====>                                             ]  533.6MB/4.877GB
09301f86b9f3: Download complete
4f4fb700ef54: Download complete
b75878aa9506: Download complete
a401bd653663: Downloading [==============>                                    ]  325.5MB/1.124GB
^Cpeter@GIBSON-WIN10-VM:~/tortoise-tts$ ^C
peter@GIBSON-WIN10-VM:~/tortoise-tts$ docker build . -t tts
[+] Building 10.6s (10/10) FINISHED                                                                                                                                                               docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                        0.2s
 => => transferring dockerfile: 1.28kB                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:12.2.0-base-ubuntu22.04                                                                                                                              1.1s
 => [auth] nvidia/cuda:pull token for registry-1.docker.io                                                                                                                                                  0.0s
 => [internal] load .dockerignore                                                                                                                                                                           0.1s
 => => transferring context: 2B                                                                                                                                                                             0.0s
 => [internal] load build context                                                                                                                                                                           0.2s
 => => transferring context: 42.95kB                                                                                                                                                                        0.1s
 => [1/5] FROM docker.io/nvidia/cuda:12.2.0-base-ubuntu22.04@sha256:ecdf8549dd5f12609e365217a64dedde26ecda26da8f3ff3f82def6749f53051                                                                        0.0s
 => CACHED [2/5] COPY . /app                                                                                                                                                                                0.0s
 => CACHED [3/5] RUN apt-get update &&     apt-get install -y --allow-unauthenticated --no-install-recommends     wget     git     && apt-get autoremove -y     && apt-get clean -y     && rm -rf /var/lib  0.0s
 => CACHED [4/5] RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda3.sh     && bash /tmp/miniconda3.sh -b -p "/root/miniconda" -f -u     && "/root/miniconda  0.0s
 => ERROR [5/5] RUN conda create --name tortoise python=3.9 numba inflect     && conda activate tortoise     && conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c py  8.3s
------
 > [5/5] RUN conda create --name tortoise python=3.9 numba inflect     && conda activate tortoise     && conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia     && conda install transformers=4.31.0     && cd /app     && python setup.py install:
1.612 Channels:
1.612  - defaults
1.612 Platform: linux-64
1.612 Collecting package metadata (repodata.json): ...working... done
4.186 Solving environment: ...working... done
4.504
4.504 ## Package Plan ##
4.504
4.504   environment location: /root/miniconda/envs/tortoise
4.504
4.504   added / updated specs:
4.504     - inflect
4.504     - numba
4.504     - python=3.9
4.504
4.504
4.504 The following packages will be downloaded:
4.504
4.504     package                    |            build
4.504     ---------------------------|-----------------
4.504     annotated-types-0.6.0      |   py39h06a4308_0          22 KB
4.504     blas-1.0                   |              mkl           6 KB
4.504     inflect-7.0.0              |   py39h06a4308_0          61 KB
4.504     intel-openmp-2023.1.0      |   hdb19cb5_46306        17.2 MB
4.504     libffi-3.4.4               |       h6a678d5_1         141 KB
4.504     libllvm14-14.0.6           |       hdb19cb5_3        33.4 MB
4.504     llvmlite-0.42.0            |   py39h6a678d5_0         3.7 MB
4.504     mkl-2023.1.0               |   h213fc3f_46344       171.5 MB
4.504     mkl-service-2.4.0          |   py39h5eee18b_1          54 KB
4.504     mkl_fft-1.3.8              |   py39h5eee18b_0         216 KB
4.504     mkl_random-1.2.4           |   py39hdb19cb5_0         313 KB
4.504     numba-0.59.1               |   py39h6a678d5_0         4.4 MB
4.504     numpy-1.26.4               |   py39h5f9d8c6_0          10 KB
4.504     numpy-base-1.26.4          |   py39hb5e798b_0         7.2 MB
4.504     openssl-3.0.13             |       h7f8727e_1         5.2 MB
4.504     pip-24.0                   |   py39h06a4308_0         2.6 MB
4.504     pydantic-2.5.3             |   py39h06a4308_0         532 KB
4.504     pydantic-core-2.14.6       |   py39hb02cf49_0         1.4 MB
4.504     python-3.9.19              |       h955ad1f_1        25.1 MB
4.504     setuptools-69.5.1          |   py39h06a4308_0        1003 KB
4.504     sqlite-3.45.3              |       h5eee18b_0         1.2 MB
4.504     tbb-2021.8.0               |       hdb19cb5_0         1.6 MB
4.504     tk-8.6.14                  |       h39e8969_0         3.4 MB
4.504     typing-extensions-4.11.0   |   py39h06a4308_0           9 KB
4.504     typing_extensions-4.11.0   |   py39h06a4308_0          58 KB
4.504     wheel-0.43.0               |   py39h06a4308_0         109 KB
4.504     xz-5.4.6                   |       h5eee18b_1         643 KB
4.504     zlib-1.2.13                |       h5eee18b_1         111 KB
4.504     ------------------------------------------------------------
4.504                                            Total:       281.2 MB
4.504
4.504 The following NEW packages will be INSTALLED:
4.504
4.504   _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
4.504   _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu
4.504   annotated-types    pkgs/main/linux-64::annotated-types-0.6.0-py39h06a4308_0
4.504   blas               pkgs/main/linux-64::blas-1.0-mkl
4.504   ca-certificates    pkgs/main/linux-64::ca-certificates-2024.3.11-h06a4308_0
4.504   inflect            pkgs/main/linux-64::inflect-7.0.0-py39h06a4308_0
4.504   intel-openmp       pkgs/main/linux-64::intel-openmp-2023.1.0-hdb19cb5_46306
4.504   ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.38-h1181459_1
4.504   libffi             pkgs/main/linux-64::libffi-3.4.4-h6a678d5_1
4.504   libgcc-ng          pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
4.504   libgomp            pkgs/main/linux-64::libgomp-11.2.0-h1234567_1
4.504   libllvm14          pkgs/main/linux-64::libllvm14-14.0.6-hdb19cb5_3
4.504   libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1
4.504   llvmlite           pkgs/main/linux-64::llvmlite-0.42.0-py39h6a678d5_0
4.504   mkl                pkgs/main/linux-64::mkl-2023.1.0-h213fc3f_46344
4.504   mkl-service        pkgs/main/linux-64::mkl-service-2.4.0-py39h5eee18b_1
4.504   mkl_fft            pkgs/main/linux-64::mkl_fft-1.3.8-py39h5eee18b_0
4.504   mkl_random         pkgs/main/linux-64::mkl_random-1.2.4-py39hdb19cb5_0
4.504   ncurses            pkgs/main/linux-64::ncurses-6.4-h6a678d5_0
4.504   numba              pkgs/main/linux-64::numba-0.59.1-py39h6a678d5_0
4.504   numpy              pkgs/main/linux-64::numpy-1.26.4-py39h5f9d8c6_0
4.504   numpy-base         pkgs/main/linux-64::numpy-base-1.26.4-py39hb5e798b_0
4.504   openssl            pkgs/main/linux-64::openssl-3.0.13-h7f8727e_1
4.504   pip                pkgs/main/linux-64::pip-24.0-py39h06a4308_0
4.504   pydantic           pkgs/main/linux-64::pydantic-2.5.3-py39h06a4308_0
4.504   pydantic-core      pkgs/main/linux-64::pydantic-core-2.14.6-py39hb02cf49_0
4.504   python             pkgs/main/linux-64::python-3.9.19-h955ad1f_1
4.504   readline           pkgs/main/linux-64::readline-8.2-h5eee18b_0
4.504   setuptools         pkgs/main/linux-64::setuptools-69.5.1-py39h06a4308_0
4.504   sqlite             pkgs/main/linux-64::sqlite-3.45.3-h5eee18b_0
4.504   tbb                pkgs/main/linux-64::tbb-2021.8.0-hdb19cb5_0
4.504   tk                 pkgs/main/linux-64::tk-8.6.14-h39e8969_0
4.504   typing-extensions  pkgs/main/linux-64::typing-extensions-4.11.0-py39h06a4308_0
4.504   typing_extensions  pkgs/main/linux-64::typing_extensions-4.11.0-py39h06a4308_0
4.504   tzdata             pkgs/main/noarch::tzdata-2024a-h04d1e81_0
4.504   wheel              pkgs/main/linux-64::wheel-0.43.0-py39h06a4308_0
4.504   xz                 pkgs/main/linux-64::xz-5.4.6-h5eee18b_1
4.504   zlib               pkgs/main/linux-64::zlib-1.2.13-h5eee18b_1
4.504
4.504
4.504 Proceed ([y]/n)?
7.103
7.103 Downloading and Extracting Packages: ...working... done
7.103
7.103 ('Connection broken: IncompleteRead(9468248 bytes read, 16847584 more expected)', IncompleteRead(9468248 bytes read, 16847584 more expected))
7.103 ('Connection broken: IncompleteRead(9468248 bytes read, 16847584 more expected)', IncompleteRead(9468248 bytes read, 16847584 more expected))
7.103
------
Dockerfile:29
--------------------
  28 |
  29 | >>> RUN conda create --name tortoise python=3.9 numba inflect \
  30 | >>>     && conda activate tortoise \
  31 | >>>     && conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia \
  32 | >>>     && conda install transformers=4.31.0 \
  33 | >>>     && cd /app \
  34 | >>>     && python setup.py install
  35 |
--------------------
ERROR: failed to solve: process "/bin/bash --login -c conda create --name tortoise python=3.9 numba inflect     && conda activate tortoise     && conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia     && conda install transformers=4.31.0     && cd /app     && python setup.py install" did not complete successfully: exit code: 1
amangupta2303 commented 5 months ago

i am encountering the same issue. Did you find any solution for the above?