abdeladim-s / subsai

🎞️ Subtitles generation tool (Web-UI + CLI + Python package) powered by OpenAI's Whisper and its variants 🎞️
https://abdeladim-s.github.io/subsai/
GNU General Public License v3.0
1.15k stars 96 forks source link

Installation error: Cannot install subsai and subsai==1.3.0 because these package versions have conflicting dependencies #119

Closed ononoki1 closed 3 months ago

ononoki1 commented 3 months ago

OS: Windows 10 Python: Miniconda with python 3.10

ffmpeg already installed. When running pip install git+https://github.com/abdeladim-s/subsai, the following error occurs.

Error message:

INFO: pip is looking at multiple versions of whisperx to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install subsai and subsai==1.3.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    subsai 1.3.0 depends on faster-whisper
    whisperx 3.1.1 depends on faster-whisper==1.0.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

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

Similar to https://github.com/abdeladim-s/subsai/issues/115 and https://github.com/abdeladim-s/subsai/issues/116.

Environment (output of conda list):

# packages in environment at C:\Users\username\miniconda3\envs\subsai:
#
# Name                    Version                   Build  Channel
bzip2                     1.0.8                h2bbff1b_5    defaults
ca-certificates           2023.12.12           haa95532_0    defaults
libffi                    3.4.4                hd77b12b_0    defaults
openssl                   3.0.13               h2bbff1b_0    defaults
pip                       23.3.1          py310haa95532_0    defaults
python                    3.10.13              he1021f5_0    defaults
setuptools                68.2.2          py310haa95532_0    defaults
sqlite                    3.41.2               h2bbff1b_0    defaults
tk                        8.6.12               h2bbff1b_0    defaults
tzdata                    2024a                h04d1e81_0    defaults
vc                        14.2                 h21ff451_1    defaults
vs2015_runtime            14.27.29016          h5e58377_2    defaults
wheel                     0.41.2          py310haa95532_0    defaults
xz                        5.4.6                h8cc25b3_0    defaults
zlib                      1.2.13               h8cc25b3_0    defaults
abdeladim-s commented 3 months ago

@ononoki1, it's weird this issue is still popping up, I have deleted the faster-whisper version from the requirements so basically pip should install the version provided by the whisperx package.

Can you please change faster-whisper into faster-whisper>=1.0.0 in the requirement.txt file and see if that solved the issue ?

ononoki1 commented 3 months ago

The issue was caused by using outdated pypi mirror (https://mirrors.bfsu.edu.cn/pypi/web/simple). It works after changing to another one (https://pypi.tuna.tsinghua.edu.cn/simple).