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

Cannot install via Docker #796

Open
blackcatstudiosdevelopment opened this issue Jun 21, 2024 · 4 comments
Open

Cannot install via Docker #796

blackcatstudiosdevelopment opened this issue Jun 21, 2024 · 4 comments

Comments

@blackcatstudiosdevelopment

When creating the Docker container the install fails on the following step with the after-follow error:

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
Installed /root/miniconda/envs/tortoise/lib/python3.9/site-packages/librosa-0.10.2.post1-py3.9.egg
Searching for scipy
Reading https://pypi.org/simple/scipy/
Downloading https://files.pythonhosted.org/packages/50/91/62f158448035e9a6e6df9eb472307e5ce207d30e99eac6dc7bebefd83a48/scipy-1.14.0rc2.tar.gz#sha256=67a0ebbf3c2ac35468af89d3da3b9ffecff1f265f854bdfe836a5ded139f73b1
Best match: scipy 1.14.0rc2
Processing scipy-1.14.0rc2.tar.gz
error: Couldn't find a setup script in /tmp/easy_install-068u5bj3/scipy-1.14.0rc2.tar.gz
@blackcatstudiosdevelopment
Copy link
Author

Correction: tortoise-tts cannot be installed at all right now, same error as above without Docker.

@Xeraster
Copy link

Xeraster commented Jul 2, 2024

I'm having the same error. I tried manually acquiring and copying that file to every folder in tmp as it gets created but that didn't work.

@mikejgrecojr
Copy link

mikejgrecojr commented Jul 3, 2024

Try updating your Dockerfile by adding in scipy to the conda install and specifying version 1.13.1 on line 31 like below. That worked for me:

&& conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 scipy=1.13.1 -c pytorch -c 

@subscaper
Copy link

subscaper commented Jul 10, 2024

The solution from Mike fixed my problem.

FROM nvidia/cuda:12.2.0-base-ubuntu22.04

COPY . /app

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/apt/lists/*

ENV HOME "/root"
ENV CONDA_DIR "${HOME}/miniconda"
ENV PATH="$CONDA_DIR/bin":$PATH
ENV CONDA_AUTO_UPDATE_CONDA=false
ENV PIP_DOWNLOAD_CACHE="$HOME/.pip/cache"
ENV TORTOISE_MODELS_DIR="$HOME/tortoise-tts/build/lib/tortoise/models"

RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda3.sh \
    && bash /tmp/miniconda3.sh -b -p "${CONDA_DIR}" -f -u \
    && "${CONDA_DIR}/bin/conda" init bash \
    && rm -f /tmp/miniconda3.sh \
    && echo ". '${CONDA_DIR}/etc/profile.d/conda.sh'" >> "${HOME}/.profile"

# --login option used to source bashrc (thus activating conda env) at every RUN statement
SHELL ["/bin/bash", "--login", "-c"]

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 scipy=1.13.1 -c pytorch -c nvidia\
    && conda install transformers=4.31.0 \
    && cd /app \
    && python setup.py install

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

4 participants