MahmoudAshraf97 / whisper-diarization

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

Conflicting dependencies while installing requirements.txt #188

Open AnshumanParidaIL opened 1 month ago

AnshumanParidaIL commented 1 month ago

ERROR: Cannot install -r requirements.txt (line 3), -r requirements.txt (line 4), -r requirements.txt (line 6) and whisperx because these package versions have conflicting dependencies.

The conflict is caused by: whisperx 3.1.1 depends on torchaudio>=2 pyannote-audio 3.1.1 depends on torchaudio>=2.0.0 demucs 4.1.0a2 depends on torchaudio<2.1 and >=0.8 ctc-forced-aligner 0.1 depends on torchaudio>=2.1.0

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
MahmoudAshraf97 commented 1 month ago

Should be solved now

AnshumanParidaIL commented 1 month ago

Cloned the updated repo and installed requirements, this time I encountered this error:-

 Running setup.py install for ctc-forced-aligner ... error
  error: subprocess-exited-with-error

  × Running setup.py install for ctc-forced-aligner did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-l_it1chw/setup.py", line 2, in <module>
          from torch.utils import cpp_extension
        File "/home/ubuntu/anshuman/sd/env/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 28, in <module>
          from pkg_resources import packaging  # type: ignore[attr-defined]
      ImportError: cannot import name 'packaging' from 'pkg_resources' (/home/ubuntu/anshuman/sd/env/lib/python3.10/site-packages/pkg_resources/__init__.py)
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> ctc-forced-aligner

I am using python 3.10.12.

MahmoudAshraf97 commented 1 month ago

update setuptools pip install setuptools -U --force-reinstall