MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
2.44k stars 238 forks source link

Numpy Conflict - current requirements.txt #157

Closed filmo closed 2 months ago

filmo commented 5 months ago

Decided to build a new environment. Created a python 3.11 environment

After installing nemo==1.21.0

I get:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nemo-toolkit 1.21.0 requires numpy<1.24,>=1.22, but you have numpy 1.26.3 which is incompatible.

when trying to install whisperX and demucs

It seems like nemo 1.21 installs numpy 1.26 which the others don't like to play with. I've used '--no-deps numpy' to for both WhisperX and demucs to install. Not sure if that's going to mess up things.

I also tried pip-compile against the requirements, but it crashes out with max depth > 200,000 trying to solve the environment.

tophee commented 4 months ago

Did you find a solution for this? I am also stuck with contradicting requirements, especially

torchvision 0.17.0 requires torch==2.2.0, but you have torch 2.0.1 which is incompatible.
torchaudio 2.0.2 requires torch==2.0.1, but you have torch 2.2.0 which is incompatible.
filmo commented 4 months ago

The solution I found was to set my python environment to 3.9, not 3.11.

I did not try 3.10