From 7c77d3506a47f8f758200d5fd577d9a3b225f3a3 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 7 May 2026 07:44:37 +0000 Subject: [PATCH] fix(chatterbox): pin omegaconf in every profile requirements file The previous pin in requirements.txt was ineffective: installRequirements runs a separate `pip install --requirement` per file, so resolution does not carry over to the per-profile file where chatterbox-tts is declared. With chatterbox-tts's unpinned `omegaconf` dep, pip backtracked through 1.x sdists into ruamel.yaml<0.15, whose Python-2-era setup.py fails on Python 3.10+. Pin omegaconf==2.3.0 next to chatterbox-tts in every profile file (matches what upstream chatterbox uses). Drop the dead pin from requirements.txt. Signed-off-by: Ettore Di Giacinto Assisted-by: Claude:claude-opus-4-7 [Claude Code] --- backend/python/chatterbox/requirements-cpu.txt | 3 +++ backend/python/chatterbox/requirements-cublas12.txt | 3 +++ backend/python/chatterbox/requirements-cublas13.txt | 3 +++ backend/python/chatterbox/requirements-hipblas.txt | 3 +++ backend/python/chatterbox/requirements-intel.txt | 3 +++ backend/python/chatterbox/requirements-l4t12.txt | 3 +++ backend/python/chatterbox/requirements-l4t13.txt | 3 +++ backend/python/chatterbox/requirements-mps.txt | 3 +++ backend/python/chatterbox/requirements.txt | 5 +---- 9 files changed, 25 insertions(+), 4 deletions(-) diff --git a/backend/python/chatterbox/requirements-cpu.txt b/backend/python/chatterbox/requirements-cpu.txt index df4814ac7..998edb42c 100644 --- a/backend/python/chatterbox/requirements-cpu.txt +++ b/backend/python/chatterbox/requirements-cpu.txt @@ -4,6 +4,9 @@ torch torchaudio numpy>=1.24.0,<1.26.0 transformers +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 # https://github.com/mudler/LocalAI/pull/6240#issuecomment-3329518289 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster #chatterbox-tts==0.1.4 \ No newline at end of file diff --git a/backend/python/chatterbox/requirements-cublas12.txt b/backend/python/chatterbox/requirements-cublas12.txt index 70c46d2d5..df9c365aa 100644 --- a/backend/python/chatterbox/requirements-cublas12.txt +++ b/backend/python/chatterbox/requirements-cublas12.txt @@ -2,6 +2,9 @@ torch torchaudio transformers numpy>=1.24.0,<1.26.0 +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 # https://github.com/mudler/LocalAI/pull/6240#issuecomment-3329518289 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster accelerate diff --git a/backend/python/chatterbox/requirements-cublas13.txt b/backend/python/chatterbox/requirements-cublas13.txt index 4ac324c9d..7d06e4c48 100644 --- a/backend/python/chatterbox/requirements-cublas13.txt +++ b/backend/python/chatterbox/requirements-cublas13.txt @@ -3,6 +3,9 @@ torch torchaudio transformers numpy>=1.24.0,<1.26.0 +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 # https://github.com/mudler/LocalAI/pull/6240#issuecomment-3329518289 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster accelerate diff --git a/backend/python/chatterbox/requirements-hipblas.txt b/backend/python/chatterbox/requirements-hipblas.txt index 21705a460..ba2cb0740 100644 --- a/backend/python/chatterbox/requirements-hipblas.txt +++ b/backend/python/chatterbox/requirements-hipblas.txt @@ -3,6 +3,9 @@ torch==2.10.0+rocm7.0 torchaudio==2.10.0+rocm7.0 transformers numpy>=1.24.0,<1.26.0 +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 # https://github.com/mudler/LocalAI/pull/6240#issuecomment-3329518289 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster accelerate diff --git a/backend/python/chatterbox/requirements-intel.txt b/backend/python/chatterbox/requirements-intel.txt index 8aef8f6cd..f99303bb8 100644 --- a/backend/python/chatterbox/requirements-intel.txt +++ b/backend/python/chatterbox/requirements-intel.txt @@ -3,6 +3,9 @@ torch torchaudio transformers numpy>=1.24.0,<1.26.0 +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 # https://github.com/mudler/LocalAI/pull/6240#issuecomment-3329518289 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster accelerate diff --git a/backend/python/chatterbox/requirements-l4t12.txt b/backend/python/chatterbox/requirements-l4t12.txt index e5cea2392..c213ad908 100644 --- a/backend/python/chatterbox/requirements-l4t12.txt +++ b/backend/python/chatterbox/requirements-l4t12.txt @@ -3,5 +3,8 @@ torch torchaudio transformers numpy>=1.24.0,<1.26.0 +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster accelerate diff --git a/backend/python/chatterbox/requirements-l4t13.txt b/backend/python/chatterbox/requirements-l4t13.txt index 0f6e3e7de..f1f856280 100644 --- a/backend/python/chatterbox/requirements-l4t13.txt +++ b/backend/python/chatterbox/requirements-l4t13.txt @@ -3,5 +3,8 @@ torch torchaudio transformers numpy>=1.24.0,<1.26.0 +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster accelerate diff --git a/backend/python/chatterbox/requirements-mps.txt b/backend/python/chatterbox/requirements-mps.txt index 620ce159f..86d2b5d8f 100644 --- a/backend/python/chatterbox/requirements-mps.txt +++ b/backend/python/chatterbox/requirements-mps.txt @@ -3,5 +3,8 @@ torchaudio accelerate numpy>=1.24.0,<1.26.0 transformers +# Pin omegaconf so pip doesn't backtrack into 1.x sdists (whose +# ruamel.yaml<0.15 dep has a Python-2-only setup.py and fails to build). +omegaconf==2.3.0 # https://github.com/mudler/LocalAI/pull/6240#issuecomment-3329518289 chatterbox-tts@git+https://git@github.com/mudler/chatterbox.git@faster \ No newline at end of file diff --git a/backend/python/chatterbox/requirements.txt b/backend/python/chatterbox/requirements.txt index b379973f5..55a0867f0 100644 --- a/backend/python/chatterbox/requirements.txt +++ b/backend/python/chatterbox/requirements.txt @@ -3,7 +3,4 @@ protobuf certifi packaging setuptools -poetry -# Pin a modern omegaconf so pip doesn't backtrack to 1.x — old 1.x sdists -# pull ruamel.yaml<0.15 whose setup.py is Python-2-only and fails to build. -omegaconf>=2.0 \ No newline at end of file +poetry \ No newline at end of file