Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected conflict between requirements and constraints file #13120

Open
1 task done
eshenayo opened this issue Dec 20, 2024 · 0 comments
Open
1 task done

Unexpected conflict between requirements and constraints file #13120

eshenayo opened this issue Dec 20, 2024 · 0 comments
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@eshenayo
Copy link

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

  1. 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
  2. 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
  3. 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

@eshenayo eshenayo added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant