chatterbox icon indicating copy to clipboard operation
chatterbox copied to clipboard

Conflicting dependencies.

Open Maxdha opened this issue 6 months ago • 13 comments

While trying pip install chatterbox-tts I get this error:

ERROR: Cannot install chatterbox-tts==0.1.0 and chatterbox-tts==0.1.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    chatterbox-tts 0.1.1 depends on numpy==1.26.0
    chatterbox-tts 0.1.0 depends on numpy==1.26.0```

Maxdha avatar May 28 '25 21:05 Maxdha

Not trying to be a smart ass here because I'm actually still installing this so it could happen to me as well. But I'm doing it into a venv just because it makes things easier. Maybe it'll help resolve some of these issues.

python -m venv venv call venv\Scripts\activate.bat pip install chatterbox-tts

psdwizzard avatar May 28 '25 21:05 psdwizzard

Don't listen to me. That's not working properly.

psdwizzard avatar May 28 '25 21:05 psdwizzard

💀

Maxdha avatar May 28 '25 21:05 Maxdha

Should be fixed by #35 (specifically https://github.com/resemble-ai/chatterbox/pull/35/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R12)

Also recommend python version 3.12 in a venv for this repo.

benpbolton avatar May 28 '25 22:05 benpbolton

Worked fine for me in a conda env with python 3.9

Just had to downgrade torch to 2.6 with CUDA 11.8 to get it working with:

conda create -n chatter python=3.9
pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu118
pip install chatterbox-tts

Works perfectly for me!

EwokOzwok avatar May 28 '25 22:05 EwokOzwok

Works for me on Cuda 12.4 Torch 2.6 Python 3.10.11 I loosened the dependencies since they do not need to be as strict. https://github.com/resemble-ai/chatterbox/compare/master...rsxdalv:chatterbox:loosen

rsxdalv avatar May 29 '25 00:05 rsxdalv

What worked for me was installing Chatterbox first, then installing pytorch for my version of CUDA (12.8) afterwards.

neshani avatar May 29 '25 02:05 neshani

Should be fixed by #35 (specifically https://github.com/resemble-ai/chatterbox/pull/35/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R12)

Also recommend python version 3.12 in a venv for this repo.

using 3.12 with venv is the fix for me on a m2 macbook pro. highly suggest trying first if you run into problem running first commands

fffilps avatar May 29 '25 10:05 fffilps

Worked fine for me with Python 3.10 venv, pytorch 2.7 (latest release) CUDA 12.8, just to leave the info here in case it's useful for others.

juangea avatar May 29 '25 14:05 juangea

Wasn't working for me on python 3.13, but worked on 3.10. It's using an Numpy 1 instead of 2 and I don't think Numpy 1 is compatible with 3.13.

Josh-M42 avatar May 29 '25 15:05 Josh-M42

probably fixed via https://github.com/resemble-ai/chatterbox/pull/35

- "numpy==1.26.0",
+ "numpy~=1.26.0",

johnmeade avatar May 29 '25 22:05 johnmeade

Investigated it more and i think it depends on sentence piece which causes NumPy to be v1 causing the python <=3.12 dependency

Josh-M42 avatar May 31 '25 15:05 Josh-M42

I just tried an install and hit issues with onnx requiring Python 3.11 and not running with 3.12. Using Docker as a work around is viable though.

pkatfa avatar Jul 29 '25 16:07 pkatfa