Skip to content

This flat out cannot be installed following the directions. #243

Description

@spike4379

Using python 3.11.9

Do the following on a clean system.

git clone https://github.com/resemble-ai/chatterbox/
cd chatterbox
python -m venv venv
call venv/scripts/activate
pip install -U pip setuptools wheel
pip install "numpy>=1.24,<1.26"
pip install --no-build-isolation "pkuseg==0.0.25"

It will fail every time.

However if you remove the pkuseg from the pyproject.toml and continue using

pip install -e .

When running with the command set

echo
call venv/scripts/activate
python gradio_tts_app.py --port 7861 --share=false
pause

you will get the error
\chatterbox\venv\Lib\site-packages\perth\perth_net_init_.py:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import resource_filename
Traceback (most recent call last):
File "F:\ChatGPT\chatterbox\gradio_tts_app.py", line 5, in
from chatterbox.tts import ChatterboxTTS
File "F:\ChatGPT\chatterbox\src\chatterbox_init_.py", line 9, in
from .tts import ChatterboxTTS
File "F:\ChatGPT\chatterbox\src\chatterbox\tts.py", line 12, in
from .models.s3tokenizer import S3_SR, drop_invalid_tokens
File "F:\ChatGPT\chatterbox\src\chatterbox\models\s3tokenizer_init_.py", line 1, in
from .s3tokenizer import (
File "F:\ChatGPT\chatterbox\src\chatterbox\models\s3tokenizer\s3tokenizer.py", line 7, in
from s3tokenizer.utils import padding
ModuleNotFoundError: No module named 's3tokenizer'
Press any key to continue . . .

I have also done a pip freeze to list all packages inside the venv

aiofiles==24.1.0
annotated-types==0.7.0
anyio==4.10.0
audioread==3.0.1
Brotli==1.1.0
catalogue==2.0.10
certifi==2025.8.3
cffi==1.17.1
cfgv==3.4.0
charset-normalizer==3.4.3
-e git+https://github.com/resemble-ai/chatterbox@1b5ae50585c8fa4d30ca6a7b304d787b4f802a42#egg=chatterbox_tts
click==8.2.1
colorama==0.4.6
conformer==0.3.2
decorator==5.2.1
Deprecated==1.2.18
diffusers==0.29.0
distlib==0.4.0
einops==0.8.1
fastapi==0.116.1
ffmpy==0.6.1
filelock==3.19.1
fsspec==2025.9.0
gradio==5.44.1
gradio_client==1.12.1
groovy==0.1.2
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
huggingface-hub==0.34.4
identify==2.6.13
idna==3.10
importlib_metadata==8.7.0
jaconv==0.4.0
Jinja2==3.1.6
joblib==1.5.2
lazy_loader==0.4
librosa==0.11.0
llvmlite==0.44.0
markdown-it-py==4.0.0
MarkupSafe==3.0.2
mdurl==0.1.2
ml_dtypes==0.5.3
mpmath==1.3.0
msgpack==1.1.1
networkx==3.5
nodeenv==1.9.1
numba==0.61.2
numpy==1.25.2
onnx==1.19.0
orjson==3.11.3
packaging==25.0
pandas==2.3.2
pillow==11.3.0
platformdirs==4.4.0
pooch==1.8.2
pre_commit==4.3.0
protobuf==6.32.0
pycparser==2.22
pydantic==2.11.7
pydantic_core==2.33.2
pydub==0.25.1
Pygments==2.19.2
pykakasi==2.3.0
python-dateutil==2.9.0.post0
python-multipart==0.0.20
pytz==2025.2
PyYAML==6.0.2
regex==2025.9.1
requests==2.32.5
resemble-perth==1.0.1
rich==14.1.0
ruff==0.12.12
s3tokenizer==0.2.0
safehttpx==0.1.6
safetensors==0.5.3
scikit-learn==1.7.1
scipy==1.16.1
semantic-version==2.10.0
shellingham==1.5.4
six==1.17.0
sniffio==1.3.1
soundfile==0.13.1
soxr==0.5.0.post1
spacy_pkuseg==1.0.1
srsly==2.5.1
starlette==0.47.3
sympy==1.13.1
threadpoolctl==3.6.0
tokenizers==0.20.3
tomlkit==0.13.3
torch==2.6.0
torchaudio==2.6.0
tqdm==4.67.1
transformers==4.46.3
typer==0.17.4
typing-inspection==0.4.1
typing_extensions==4.15.0
tzdata==2025.2
urllib3==2.5.0
uvicorn==0.35.0
virtualenv==20.34.0
websockets==15.0.1
wrapt==1.17.3
zipp==3.23.0

I have tried this with conda as well and got the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions