Open
Description
Description
Encountering an unexpected error while running: python3.11 -m pip install -r requirements.txt -c constraints.txt
In the requirements.txt file line 6 is just faster_whisper
the constraints file has the line:
whisper-timestamped @ git+https://github.com/linto-ai/whisper-timestamped@b8cfd26ac0109b84d3252638ad882ab77e0dba2e
When the constraints file is changed to be a version instead of git url, the error resolves.
Expected behavior
That @ urls are respected in the constraints.txt file.
pip version
24.3.1
Python version
3.11
OS
Ubuntu 22.04
How to Reproduce
- Create a requirements.txt file with the contents:
git+https://github.com/linto-ai/whisper-timestamped git+https://github.com/openai/whisper.git git+https://github.com/suno-ai/bark.git
- Create a constraints.txt file with the contents:
openai-whisper @ git+https://github.com/openai/whisper.git@90db0de1896c23cbfaf0c58bc2d30665f709f170 suno-bark @ git+https://github.com/suno-ai/bark.git@f4f32d4cd480dfec1c245d258174bc9bde3c2148 whisper-timestamped @ git+https://github.com/linto-ai/whisper-timestamped@b8cfd26ac0109b84d3252638ad882ab77e0dba2e
- Run:
python3 -m pip install -r requirements.txt -c constraints.txt
Output
Output:
11.44 Collecting faster_whisper (from -r requirements.txt (line 6))
11.47 Downloading faster_whisper-1.1.0-py3-none-any.whl.metadata (16 kB)
11.49 ERROR: Cannot install whisper-timestamped 1.15.8 (from git+https://github.com/linto-ai/whisper-timestamped) because these package versions have conflicting dependencies.
11.49
11.49 The conflict is caused by:
11.49 The user requested whisper-timestamped 1.15.8 (from git+https://github.com/linto-ai/whisper-timestamped)
11.49 The user requested (constraint) whisper-timestamped
11.49
11.49 To fix this you could try to:
11.49 1. loosen the range of package versions you've specified
11.49 2. remove package versions to allow pip to attempt to solve the dependency conflict
11.49
11.54 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Code of Conduct
- I agree to follow the PSF Code of Conduct.