Huanshere / VideoLingo

Netflix-level subtitle cutting, translation, alignment, and even dubbing - one-click fully automated AI video subtitle team | Netflix级字幕切割、翻译、对齐、甚至加上配音,一键全自动视频搬运AI字幕组
https://docs.videolingo.io
Apache License 2.0
7.84k stars 751 forks source link

docker安装报错,/bin/sh: 1: cd: can't cd to third_party/whisperX #294

Closed onebig32 closed 5 days ago

onebig32 commented 5 days ago

(videolingo) ➜ VideoLingo git:(main) docker build -t videolingo . [+] Building 35.9s (14/16) docker:desktop-linux => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.35kB 0.0s => [internal] load metadata for docker.io/nvidia/cuda:12.4.1-devel-ubuntu20.04 35.8s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [ 1/12] FROM docker.io/nvidia/cuda:12.4.1-devel-ubuntu20.04@sha256:8d577fd078ae56c37493af4454a5b700c72a7f1aeb9ff3d0adc0459fc47752a4 0.0s => [internal] load build context 0.0s => => transferring context: 38B 0.0s => CACHED [ 2/12] RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && apt-get update && a 0.0s => CACHED [ 3/12] RUN apt-get clean && rm -rf /var/lib/apt/lists/* 0.0s => CACHED [ 4/12] RUN ldconfig /usr/local/cuda-$(echo 12.4.1 | cut -d. -f1,2)/compat/ 0.0s => CACHED [ 5/12] WORKDIR /app 0.0s => CACHED [ 6/12] RUN git clone https://github.com/Huanshere/VideoLingo.git . 0.0s => CACHED [ 7/12] RUN pip install torch==2.0.0 torchaudio==2.0.0 --index-url https://download.pytorch.org/whl/cu118 0.0s => CACHED [ 8/12] RUN rm -rf .git 0.0s => CACHED [ 9/12] RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip install --no-cache-dir --upgrade pip requests rich ruamel.yaml 0.0s => ERROR [10/12] RUN cd third_party/whisperX && pip install --no-cache-dir -e . 0.1s

[10/12] RUN cd third_party/whisperX && pip install --no-cache-dir -e .: 0.114 /bin/sh: 1: cd: can't cd to third_party/whisperX

Dockerfile:43

41 | 42 | # Install WhisperX and other dependencies 43 | >>> RUN cd third_party/whisperX && pip install --no-cache-dir -e . 44 | COPY requirements.txt . 45 | RUN pip install --no-cache-dir -r requirements.txt

ERROR: failed to solve: process "/bin/sh -c cd third_party/whisperX && pip install --no-cache-dir -e ." did not complete successfully: exit code: 2

onebig32 commented 5 days ago

dcker

Huanshere commented 5 days ago

感谢检查,新版本从 git 安装 whisperx,不使用本地的文件了,之前 dockerfile 没有改,在 6793b49 中修复了,谢谢