Skip to content

Linux build fails on Arch #341

@benmordecai

Description

@benmordecai
$ just setup
Creating Python virtual environment...
Warning: Python 3.14 detected. ML packages may not be compatible.
Recommended: brew install python@3.12
Installing Python dependencies...
Looking in links: https://k2-fsa.github.io/icefall/piper_phonemize.html
Collecting linacodec @ git+https://github.com/ysharma3501/LinaCodec.git (from -r backend/requirements.txt (line 21))
  Cloning https://github.com/ysharma3501/LinaCodec.git to /tmp/pip-install-idq83_qq/linacodec_9ff45d6f9e93476ea47be0902034a2ad
  Running command git clone --filter=blob:none --quiet https://github.com/ysharma3501/LinaCodec.git /tmp/pip-install-idq83_qq/linacodec_9ff45d6f9e93476ea47be0902034a2ad
  Resolved https://github.com/ysharma3501/LinaCodec.git to commit c0ae7c7285e121475c27592cfbb600624b714290
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting Zipvoice @ git+https://github.com/ysharma3501/LuxTTS.git (from -r backend/requirements.txt (line 22))
  Cloning https://github.com/ysharma3501/LuxTTS.git to /tmp/pip-install-idq83_qq/zipvoice_cbae9510aa9e422684b444fa18d25372
  Running command git clone --filter=blob:none --quiet https://github.com/ysharma3501/LuxTTS.git /tmp/pip-install-idq83_qq/zipvoice_cbae9510aa9e422684b444fa18d25372
  Resolved https://github.com/ysharma3501/LuxTTS.git to commit 381b1609cb1d1afbf756b87809c623464cfd8ac5
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl (from -r backend/requirements.txt (line 48))
  Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl (12.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.8/12.8 MB 92.8 MB/s  0:00:00
Collecting fastapi>=0.109.0 (from -r backend/requirements.txt (line 2))
  Using cached fastapi-0.135.1-py3-none-any.whl.metadata (30 kB)
Collecting uvicorn>=0.27.0 (from uvicorn[standard]>=0.27.0->-r backend/requirements.txt (line 3))
  Using cached uvicorn-0.42.0-py3-none-any.whl.metadata (6.7 kB)
Collecting pydantic>=2.5.0 (from -r backend/requirements.txt (line 4))
  Using cached pydantic-2.12.5-py3-none-any.whl.metadata (90 kB)
Collecting sqlalchemy>=2.0.0 (from -r backend/requirements.txt (line 7))
  Using cached sqlalchemy-2.0.48-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (9.5 kB)
Collecting alembic>=1.13.0 (from -r backend/requirements.txt (line 8))
  Using cached alembic-1.18.4-py3-none-any.whl.metadata (7.2 kB)
Collecting torch>=2.7.0 (from -r backend/requirements.txt (line 11))
  Using cached torch-2.10.0-3-cp314-cp314-manylinux_2_28_x86_64.whl.metadata (31 kB)
Collecting transformers<=4.57.6,>=4.36.0 (from -r backend/requirements.txt (line 12))
  Using cached transformers-4.57.6-py3-none-any.whl.metadata (43 kB)
Collecting accelerate>=0.26.0 (from -r backend/requirements.txt (line 13))
  Using cached accelerate-1.13.0-py3-none-any.whl.metadata (19 kB)
Collecting huggingface_hub>=0.20.0 (from -r backend/requirements.txt (line 14))
  Downloading huggingface_hub-1.7.2-py3-none-any.whl.metadata (13 kB)
Collecting qwen-tts>=0.0.5 (from -r backend/requirements.txt (line 15))
  Using cached qwen_tts-0.1.1-py3-none-any.whl.metadata (61 kB)
Collecting conformer>=0.3.2 (from -r backend/requirements.txt (line 27))
  Using cached conformer-0.3.2-py3-none-any.whl.metadata (631 bytes)
Collecting diffusers>=0.29.0 (from -r backend/requirements.txt (line 28))
  Using cached diffusers-0.37.0-py3-none-any.whl.metadata (20 kB)
Collecting omegaconf (from -r backend/requirements.txt (line 29))
  Using cached omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB)
Collecting pykakasi (from -r backend/requirements.txt (line 30))
  Using cached pykakasi-2.3.0-py3-none-any.whl.metadata (5.9 kB)
Collecting resemble-perth>=1.0.1 (from -r backend/requirements.txt (line 31))
  Using cached resemble_perth-1.0.1-py3-none-any.whl.metadata (4.8 kB)
Collecting s3tokenizer (from -r backend/requirements.txt (line 32))
  Using cached s3tokenizer-0.3.0-py3-none-any.whl.metadata (7.2 kB)
Collecting spacy-pkuseg (from -r backend/requirements.txt (line 33))
  Using cached spacy_pkuseg-1.0.1.tar.gz (2.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyloudnorm (from -r backend/requirements.txt (line 34))
  Using cached pyloudnorm-0.2.0-py3-none-any.whl.metadata (6.6 kB)
Collecting torchaudio (from -r backend/requirements.txt (line 41))
  Downloading torchaudio-2.10.0-cp314-cp314-manylinux_2_28_x86_64.whl.metadata (6.7 kB)
ERROR: Ignored the following versions that require a different python version: 0.8.1 Requires-Python >=3.10,<3.13; 0.8.2 Requires-Python >=3.10,<3.13; 0.8.3 Requires-Python >=3.10,<3.13; 0.8.4 Requires-Python >=3.10,<3.13; 0.9.2 Requires-Python >=3.10,<3.13; 0.9.4 Requires-Python >=3.10,<3.13
ERROR: Could not find a version that satisfies the requirement kokoro>=0.9.4 (from versions: 0.2.1, 0.2.2, 0.2.3, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.6, 0.7.8, 0.7.9, 0.7.11, 0.7.12, 0.7.13, 0.7.14, 0.7.15, 0.7.16)
ERROR: No matching distribution found for kokoro>=0.9.4
error: Recipe `setup-python` failed with exit code 1

Build fails at setup due to incorrect python version. I think it uses the system python, which is always going to be up-to-date on Arch. I used AI to troubleshoot and it suggested editing the justfile with this diff

│ 18   set windows-shell := ["powershell", "-NoProfile", "-Command"]                                                                                                │
│ 19                                                                                                                                                                │
│ 20   # Detect best python for venv creation (platform-aware)                                                                                                      │
│ 21 - system_python := if os() == "windows" { "python" } else { `command -v python3.12 2>/dev/null || command -v python3.13 2>/dev/null || echo python3` }         │
│ 21 + system_python := if os() == "windows" { "python" } else { `command -v python3.12 2>/dev/null || command -v python3.13 2>/dev/null || uv python find 3.12     │
│    2>/dev/null || uv python find 3.13 2>/dev/null || echo python3` }  

After accepting the diff, I ran just clean-python setup-python then just setup then just build and the build of the .deb appears successful (but I am running Arch and can't use it) and it has stalled for about 40 minutes building the .rpm and I can't tell if it will finish or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions