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

pip reports dependency conflict on itself for private package #11802

Open
1 task done
snaumov-sc opened this issue Feb 13, 2023 · 1 comment
Open
1 task done

pip reports dependency conflict on itself for private package #11802

snaumov-sc opened this issue Feb 13, 2023 · 1 comment
Labels
C: dependency resolution About choosing which dependencies to install S: awaiting response Waiting for a response/more information type: bug A confirmed bug or unintended behavior

Comments

@snaumov-sc
Copy link

Description

I have a private repository with pyproject.toml that sets package version to "0.1.0".
While I specified a dependency on it in requirements.txt of my main project in a form of git+ssh://git@gitlab.***.com/<package>.git@v0.1.0, everything was fine.

But when I tried to switch to pyproject.toml in my main project, using "<package> @ git+ssh://git@gitlab.***.com/<package>.git@v0.1.0" in dependencies section, I got the following error:

ERROR: Cannot install <package> 0.1.0 (from ***) and <package>==0.1.0 because these package versions have conflicting dependencies.   
The conflict is caused by:                                                                                                                                                    
    The user requested <package> 0.1.0 (from ***)                                                                                           
    <package> 0.1.0 depends on <package> 0.1.0 (from git+ssh://****@gitlab.***.com/<package>.git@v0.1.0)

I've tried to recreate .venv from scratch, but it didn't help.

Expected behavior

Clean install as with requirements.txt.

pip version

22.0.2

Python version

3.10

OS

Xubuntu 22.04

How to Reproduce

As I use private package, it is hard to say how to reproduce.

Output

No response

Code of Conduct

@snaumov-sc snaumov-sc added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Feb 13, 2023
@uranusjr
Copy link
Member

Can you provide a public repo that illustrates the issue?

@ichard26 ichard26 added C: dependency resolution About choosing which dependencies to install S: awaiting response Waiting for a response/more information and removed S: needs triage Issues/PRs that need to be triaged labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: dependency resolution About choosing which dependencies to install S: awaiting response Waiting for a response/more information type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants