SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
563 stars 133 forks source link

Numpy dependency conflict #180

Open aolko opened 1 year ago

aolko commented 1 year ago

Python 3.11.6, vs c++ build tools 2022, installing via launcher

ERROR: Cannot install -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 11), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 13), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 14), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 15), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 16), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 17), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 18), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 23) and -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 25) because these package versions have conflicting dependencies.

The conflict is caused by:
    torchvision 0.15.1 depends on numpy
    accelerate 0.20.3 depends on numpy>=1.17
    transformers 4.28.1 depends on numpy>=1.17
    diffusers 0.17.1 depends on numpy
    silero-api-server 0.2.9 depends on numpy
    chromadb 0.4.10 depends on numpy>=1.22.5; python_version >= "3.8"
    sentence-transformers 2.2.2 depends on numpy
    openai-whisper 20230314 depends on numpy
    tts 0.15.6 depends on numpy==1.22.0; python_version <= "3.10"

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Cohee1207 commented 1 year ago

Is there any specific module you are trying to use? TTS (coqui) package is creating the most incompatibilities so if you don't need it - remove from dependencies

aolko commented 1 year ago

Is there any specific module you are trying to use? TTS (coqui) package is creating the most incompatibilities so if you don't need it - remove from dependencies

No, since i don't have to pick any modules yet. All i did is press that launcher button

hidoba commented 1 year ago

Same here. I specifically need TTS.

Cohee1207 commented 1 year ago

@hidoba do you have both Python 3.11 and VS build tools installed?

Ph0rk0z commented 1 year ago

It's working fine for me with 1.24.4 in linux and also with new coqui. Just change the versions in requirements.txt.

aolko commented 1 year ago

It's working fine for me with 1.24.4 in linux and also with new coqui. Just change the versions in requirements.txt.

send the gist with fixed versions?

Ph0rk0z commented 1 year ago

Just install https://pypi.org/project/TTS/#files for your python version and do pip install numpy==1.24.4, that's all there is to it. I am at the point of ignoring people's requirements.txt and updating what needs to be done manually. Too many cases of trying to downgrade torch/transformers for me or other packages for no reason.