voice-isolation-live / bugs /deepfilternet-init-requires-git.md
TonyLikeDev's picture
fix: install libsndfile for torchaudio WAV backend
9c781a8
|
Raw
History Blame Contribute Delete
17.2 kB

===== Build Queued at 2026-04-30 21:31:48 / Commit SHA: 8f9b07c =====

--> FROM docker.io/library/python:3.11-slim@sha256:6d85378d88a19cd4d76079817532d62232be95757cb45945a99fec8e8084b9c2 DONE 0.0s

--> WORKDIR /app CACHED

--> RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* CACHED

--> Restoring cache DONE 11.7s

--> COPY requirements.txt . DONE 0.0s

--> RUN pip install --no-cache-dir torch==2.2.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu Looking in indexes: https://download.pytorch.org/whl/cpu Collecting torch==2.2.0 Downloading https://download-r2.pytorch.org/whl/cpu/torch-2.2.0%2Bcpu-cp311-cp311-linux_x86_64.whl (186.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 186.8/186.8 MB 112.3 MB/s eta 0:00:00 Collecting torchaudio==2.2.0 Downloading https://download-r2.pytorch.org/whl/cpu/torchaudio-2.2.0%2Bcpu-cp311-cp311-linux_x86_64.whl (1.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 182.2 MB/s eta 0:00:00 Collecting filelock (from torch==2.2.0) Downloading filelock-3.25.2-py3-none-any.whl.metadata (2.0 kB) Collecting typing-extensions>=4.8.0 (from torch==2.2.0) Downloading https://download.pytorch.org/whl/typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB) Collecting sympy (from torch==2.2.0) Downloading sympy-1.14.0-py3-none-any.whl.metadata (12 kB) Collecting networkx (from torch==2.2.0) Downloading networkx-3.6.1-py3-none-any.whl.metadata (6.8 kB) Collecting jinja2 (from torch==2.2.0) Downloading https://download.pytorch.org/whl/jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB) Collecting fsspec (from torch==2.2.0) Downloading fsspec-2026.2.0-py3-none-any.whl.metadata (10 kB) Collecting MarkupSafe>=2.0 (from jinja2->torch==2.2.0) Downloading https://download.pytorch.org/whl/markupsafe-3.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (2.7 kB) Collecting mpmath<1.4,>=1.1.0 (from sympy->torch==2.2.0) Downloading mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB) Downloading https://download.pytorch.org/whl/typing_extensions-4.15.0-py3-none-any.whl (44 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.6/44.6 kB 223.4 MB/s eta 0:00:00 Downloading filelock-3.25.2-py3-none-any.whl (26 kB) Downloading fsspec-2026.2.0-py3-none-any.whl (202 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 202.5/202.5 kB 51.6 MB/s eta 0:00:00 Downloading https://download.pytorch.org/whl/jinja2-3.1.6-py3-none-any.whl (134 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.9/134.9 kB 279.1 MB/s eta 0:00:00 Downloading networkx-3.6.1-py3-none-any.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 183.7 MB/s eta 0:00:00 Downloading sympy-1.14.0-py3-none-any.whl (6.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.3/6.3 MB 317.0 MB/s eta 0:00:00 Downloading https://download.pytorch.org/whl/markupsafe-3.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (22 kB) Downloading mpmath-1.3.0-py3-none-any.whl (536 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 366.3 MB/s eta 0:00:00 Installing collected packages: mpmath, typing-extensions, sympy, networkx, MarkupSafe, fsspec, filelock, jinja2, torch, torchaudio Successfully installed MarkupSafe-3.0.3 filelock-3.25.2 fsspec-2026.2.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 sympy-1.14.0 torch-2.2.0+cpu torchaudio-2.2.0+cpu typing-extensions-4.15.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv DONE 20.2s

--> RUN pip install --no-cache-dir -r requirements.txt Collecting fastapi (from -r requirements.txt (line 1)) Downloading fastapi-0.136.1-py3-none-any.whl.metadata (28 kB) Collecting uvicorn (from -r requirements.txt (line 2)) Downloading uvicorn-0.46.0-py3-none-any.whl.metadata (6.7 kB) Collecting python-multipart (from -r requirements.txt (line 3)) Downloading python_multipart-0.0.27-py3-none-any.whl.metadata (2.1 kB) Collecting deepfilternet (from -r requirements.txt (line 4)) Downloading deepfilternet-0.5.6-py3-none-any.whl.metadata (1.7 kB) Requirement already satisfied: torch in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 5)) (2.2.0+cpu) Collecting aiofiles (from -r requirements.txt (line 6)) Downloading aiofiles-25.1.0-py3-none-any.whl.metadata (6.3 kB) Collecting starlette>=0.46.0 (from fastapi->-r requirements.txt (line 1)) Downloading starlette-1.0.0-py3-none-any.whl.metadata (6.3 kB) Collecting pydantic>=2.9.0 (from fastapi->-r requirements.txt (line 1)) Downloading pydantic-2.13.3-py3-none-any.whl.metadata (108 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.8/108.8 kB 65.6 MB/s eta 0:00:00 Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.11/site-packages (from fastapi->-r requirements.txt (line 1)) (4.15.0) Collecting typing-inspection>=0.4.2 (from fastapi->-r requirements.txt (line 1)) Downloading typing_inspection-0.4.2-py3-none-any.whl.metadata (2.6 kB) Collecting annotated-doc>=0.0.2 (from fastapi->-r requirements.txt (line 1)) Downloading annotated_doc-0.0.4-py3-none-any.whl.metadata (6.6 kB) Collecting click>=7.0 (from uvicorn->-r requirements.txt (line 2)) Downloading click-8.3.3-py3-none-any.whl.metadata (2.6 kB) Collecting h11>=0.8 (from uvicorn->-r requirements.txt (line 2)) Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB) Collecting appdirs<2.0,>=1.4 (from deepfilternet->-r requirements.txt (line 4)) Downloading appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB) Collecting deepfilterlib==0.5.6 (from deepfilternet->-r requirements.txt (line 4)) Downloading DeepFilterLib-0.5.6-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (252 bytes) Collecting loguru>=0.5 (from deepfilternet->-r requirements.txt (line 4)) Downloading loguru-0.7.3-py3-none-any.whl.metadata (22 kB) Collecting numpy<2.0,>=1.22 (from deepfilternet->-r requirements.txt (line 4)) Downloading numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 340.1 MB/s eta 0:00:00 Collecting packaging<24.0,>=23.0 (from deepfilternet->-r requirements.txt (line 4)) Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB) Collecting requests<3.0,>=2.27 (from deepfilternet->-r requirements.txt (line 4)) Downloading requests-2.33.1-py3-none-any.whl.metadata (4.8 kB) Requirement already satisfied: sympy>=1.6 in /usr/local/lib/python3.11/site-packages (from deepfilternet->-r requirements.txt (line 4)) (1.14.0) Requirement already satisfied: filelock in /usr/local/lib/python3.11/site-packages (from torch->-r requirements.txt (line 5)) (3.25.2) Requirement already satisfied: networkx in /usr/local/lib/python3.11/site-packages (from torch->-r requirements.txt (line 5)) (3.6.1) Requirement already satisfied: jinja2 in /usr/local/lib/python3.11/site-packages (from torch->-r requirements.txt (line 5)) (3.1.6) Requirement already satisfied: fsspec in /usr/local/lib/python3.11/site-packages (from torch->-r requirements.txt (line 5)) (2026.2.0) Collecting annotated-types>=0.6.0 (from pydantic>=2.9.0->fastapi->-r requirements.txt (line 1)) Downloading annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB) Collecting pydantic-core==2.46.3 (from pydantic>=2.9.0->fastapi->-r requirements.txt (line 1)) Downloading pydantic_core-2.46.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB) Collecting charset_normalizer<4,>=2 (from requests<3.0,>=2.27->deepfilternet->-r requirements.txt (line 4)) Downloading charset_normalizer-3.4.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (40 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.9/40.9 kB 326.5 MB/s eta 0:00:00 Collecting idna<4,>=2.5 (from requests<3.0,>=2.27->deepfilternet->-r requirements.txt (line 4)) Downloading idna-3.13-py3-none-any.whl.metadata (8.0 kB) Collecting urllib3<3,>=1.26 (from requests<3.0,>=2.27->deepfilternet->-r requirements.txt (line 4)) Downloading urllib3-2.6.3-py3-none-any.whl.metadata (6.9 kB) Collecting certifi>=2023.5.7 (from requests<3.0,>=2.27->deepfilternet->-r requirements.txt (line 4)) Downloading certifi-2026.4.22-py3-none-any.whl.metadata (2.5 kB) Collecting anyio<5,>=3.6.2 (from starlette>=0.46.0->fastapi->-r requirements.txt (line 1)) Downloading anyio-4.13.0-py3-none-any.whl.metadata (4.5 kB) Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.11/site-packages (from sympy>=1.6->deepfilternet->-r requirements.txt (line 4)) (1.3.0) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/site-packages (from jinja2->torch->-r requirements.txt (line 5)) (3.0.3) Downloading fastapi-0.136.1-py3-none-any.whl (117 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.7/117.7 kB 394.6 MB/s eta 0:00:00 Downloading uvicorn-0.46.0-py3-none-any.whl (70 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.9/70.9 kB 368.8 MB/s eta 0:00:00 Downloading python_multipart-0.0.27-py3-none-any.whl (29 kB) Downloading deepfilternet-0.5.6-py3-none-any.whl (113 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 113.2/113.2 kB 421.4 MB/s eta 0:00:00 Downloading DeepFilterLib-0.5.6-cp311-cp311-manylinux_2_28_x86_64.whl (568 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 568.8/568.8 kB 192.0 MB/s eta 0:00:00 Downloading aiofiles-25.1.0-py3-none-any.whl (14 kB) Downloading annotated_doc-0.0.4-py3-none-any.whl (5.3 kB) Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB) Downloading click-8.3.3-py3-none-any.whl (110 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.5/110.5 kB 438.0 MB/s eta 0:00:00 Downloading h11-0.16.0-py3-none-any.whl (37 kB) Downloading loguru-0.7.3-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 350.8 MB/s eta 0:00:00 Downloading numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.3/18.3 MB 317.0 MB/s eta 0:00:00 Downloading packaging-23.2-py3-none-any.whl (53 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 348.0 MB/s eta 0:00:00 Downloading pydantic-2.13.3-py3-none-any.whl (471 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 472.0/472.0 kB 517.4 MB/s eta 0:00:00 Downloading pydantic_core-2.46.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 140.4 MB/s eta 0:00:00 Downloading requests-2.33.1-py3-none-any.whl (64 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.9/64.9 kB 372.4 MB/s eta 0:00:00 Downloading starlette-1.0.0-py3-none-any.whl (72 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.7/72.7 kB 393.1 MB/s eta 0:00:00 Downloading typing_inspection-0.4.2-py3-none-any.whl (14 kB) Downloading annotated_types-0.7.0-py3-none-any.whl (13 kB) Downloading anyio-4.13.0-py3-none-any.whl (114 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.4/114.4 kB 397.8 MB/s eta 0:00:00 Downloading certifi-2026.4.22-py3-none-any.whl (135 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.7/135.7 kB 412.1 MB/s eta 0:00:00 Downloading charset_normalizer-3.4.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (214 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 214.1/214.1 kB 447.0 MB/s eta 0:00:00 Downloading idna-3.13-py3-none-any.whl (68 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.6/68.6 kB 382.1 MB/s eta 0:00:00 Downloading urllib3-2.6.3-py3-none-any.whl (131 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.6/131.6 kB 436.1 MB/s eta 0:00:00 Installing collected packages: appdirs, urllib3, typing-inspection, python-multipart, pydantic-core, packaging, numpy, loguru, idna, h11, click, charset_normalizer, certifi, annotated-types, annotated-doc, aiofiles, uvicorn, requests, pydantic, deepfilterlib, anyio, starlette, deepfilternet, fastapi Successfully installed aiofiles-25.1.0 annotated-doc-0.0.4 annotated-types-0.7.0 anyio-4.13.0 appdirs-1.4.4 certifi-2026.4.22 charset_normalizer-3.4.7 click-8.3.3 deepfilterlib-0.5.6 deepfilternet-0.5.6 fastapi-0.136.1 h11-0.16.0 idna-3.13 loguru-0.7.3 numpy-1.26.4 packaging-23.2 pydantic-2.13.3 pydantic-core-2.46.3 python-multipart-0.0.27 requests-2.33.1 starlette-1.0.0 typing-inspection-0.4.2 urllib3-2.6.3 uvicorn-0.46.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[notice] A new release of pip is available: 24.0 -> 26.1 [notice] To update, run: pip install --upgrade pip DONE 6.2s

--> RUN python -c "import pathlib, site; [p.write_text(p.read_text().replace('from torchaudio.backend.common import AudioMetaData', 'try:\n from torchaudio.backend.common import AudioMetaData\nexcept ImportError:\n from torchaudio._backend.common import AudioMetaData')) for d in site.getsitepackages() if (p := pathlib.Path(d) / 'df/io.py').exists()]" DONE 0.1s

--> COPY backend/ ./backend/ DONE 0.0s

--> COPY frontend/ ./frontend/ DONE 0.0s

--> RUN mkdir -p backend/uploads separated DONE 0.0s

--> RUN python -c "from df.enhance import init_df; init_df()" /usr/local/lib/python3.11/site-packages/df/io.py:10: UserWarning: torchaudio.backend.common.AudioMetaData has been moved to torchaudio.AudioMetaData. Please update the import path. from torchaudio.backend.common import AudioMetaData 2026-04-30 21:32:33 | INFO | DF | Running on torch 2.2.0+cpu 2026-04-30 21:32:33 | INFO | DF | Running on host buildkitsandbox Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.11/site-packages/df/enhance.py", line 142, in init_df init_logger(file=log_file, level=log_level, model=model_base_dir) File "/usr/local/lib/python3.11/site-packages/df/logger.py", line 46, in init_logger commit = get_commit_hash() ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/df/utils.py", line 152, in get_commit_hash git_dir = get_git_root() ^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/df/utils.py", line 144, in get_git_root return subprocess.check_output(args).strip().decode() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/subprocess.py", line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.11/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'git'

--> ERROR: process "/bin/sh -c python -c "from df.enhance import init_df; init_df()"" did not complete successfully: exit code: 1