Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build error. #128

Open
arthurwolf opened this issue May 7, 2024 · 1 comment
Open

Docker build error. #128

arthurwolf opened this issue May 7, 2024 · 1 comment

Comments

@arthurwolf
Copy link

Trying to install folllowing the instructions at https://github.com/myshell-ai/MeloTTS/blob/main/docs/install.md

What happens (after a git copy) :

╭─arthur at aquarelle in ~/dev/ai/MeloTTS on main✔ 24-05-07 - 23:35:27
╰─(base) ⠠⠵ docker build -t melotts .                                                                                                                                                    on main|✔
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  29.04MB
Step 1/8 : FROM python:3.9-slim
 ---> a8260aeae86e
Step 2/8 : WORKDIR /app
 ---> Using cache
 ---> 224330a24d00
Step 3/8 : COPY . /app
 ---> Using cache
 ---> 5e1d5add8180
Step 4/8 : RUN apt-get update && apt-get install -y     build-essential libsndfile1     && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> e70782d33c30
Step 5/8 : RUN pip install -e .
 ---> Using cache
 ---> 24dbac85d7d0
Step 6/8 : RUN python -m unidic download
 ---> Using cache
 ---> 58ac3b7f2ca4
Step 7/8 : RUN python melo/init_downloads.py
 ---> Running in 3a0bfdab6fe0
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     /root/nltk_data...
[nltk_data]   Unzipping taggers/averaged_perceptron_tagger.zip.
[nltk_data] Downloading package cmudict to /root/nltk_data...
[nltk_data]   Unzipping corpora/cmudict.zip.
Traceback (most recent call last):
  File "/app/melo/init_downloads.py", line 5, in <module>
    from melo.api import TTS
  File "/app/melo/api.py", line 18, in <module>
    from .download_utils import load_or_download_config, load_or_download_model
  File "/app/melo/download_utils.py", line 4, in <module>
    from cached_path import cached_path
  File "/usr/local/lib/python3.9/site-packages/cached_path/__init__.py", line 13, in <module>
    from ._cached_path import cached_path
  File "/usr/local/lib/python3.9/site-packages/cached_path/_cached_path.py", line 15, in <module>
    from .schemes import (
  File "/usr/local/lib/python3.9/site-packages/cached_path/schemes/__init__.py", line 6, in <module>
    from .s3 import S3Client
  File "/usr/local/lib/python3.9/site-packages/cached_path/schemes/s3.py", line 16, in <module>
    class S3Client(SchemeClient):
  File "/usr/local/lib/python3.9/site-packages/cached_path/schemes/s3.py", line 18, in S3Client
    botocore.exceptions.HTTPClientError,
AttributeError: module 'botocore.exceptions' has no attribute 'HTTPClientError'
The command '/bin/sh -c python melo/init_downloads.py' returned a non-zero code: 1
╭─arthur at aquarelle in ~/dev/ai/MeloTTS on main✔ 24-05-07 - 23:37:23
╰─(base) ⠠⠵                            

Thank you.

@samtin0x
Copy link

samtin0x commented May 9, 2024

Try adding this requirements.txt file. I had a similar issue

botocore==1.34.88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants