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 fail #842

Open
Aniket-IN opened this issue Jan 10, 2025 · 2 comments
Open

Docker build fail #842

Aniket-IN opened this issue Jan 10, 2025 · 2 comments

Comments

@Aniket-IN
Copy link

Hi 👋,

While building the Docker Image, with this command:

docker build . -t tts

I'm getting the below error:

230.1 Best match: huggingface-hub 0.16.4
230.1 Processing huggingface_hub-0.16.4-py3-none-any.whl
230.1 Installing huggingface_hub-0.16.4-py3-none-any.whl to /root/miniconda/envs/tortoise/lib/python3.9/site-packages
230.1 Adding huggingface-hub 0.16.4 to easy-install.pth file
230.1 detected new path './rotary_embedding_torch-0.8.6-py3.9.egg'
230.1 Installing huggingface-cli script to /root/miniconda/envs/tortoise/bin
230.1 
230.1 Installed /root/miniconda/envs/tortoise/lib/python3.9/site-packages/huggingface_hub-0.16.4-py3.9.egg
230.1 error: tokenizers 0.14.0 is installed but tokenizers!=0.11.3,<0.14,>=0.11.1 is required by {'transformers'}
------
Dockerfile:29
--------------------
  28 |     
  29 | >>> RUN conda create --name tortoise python=3.9 numba inflect -y \
  30 | >>>     && conda activate tortoise \
  31 | >>>     && conda install --yes pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia \
  32 | >>>     && conda install --yes transformers=4.31.0 \
  33 | >>>     && cd /app \
  34 | >>>     && python setup.py install
--------------------
ERROR: failed to solve: process "/bin/bash --login -c conda create --name tortoise python=3.9 numba inflect -y     && conda activate tortoise     && conda install --yes pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia     && conda install --yes transformers=4.31.0     && cd /app     && python setup.py install" did not complete successfully: exit code: 1

I'm very confused, what am I missing 🤔

@BriscoPeas93
Copy link

Open setup.py and set tokenizers==0.11.1

@garenkwan
Copy link

this works, thanks

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

3 participants