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

Fails to choose compatible version for version-less dependency #1589

Closed
2 of 3 tasks
colllin opened this issue Nov 16, 2019 · 3 comments
Closed
2 of 3 tasks

Fails to choose compatible version for version-less dependency #1589

colllin opened this issue Nov 16, 2019 · 3 comments
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected status/duplicate Duplicate issues

Comments

@colllin
Copy link

colllin commented Nov 16, 2019

  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • N/A If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: ubuntu 16.04

  • Poetry version: 0.12.17

  • Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/colllin/a612f1ddbafbde91b1da2a9a213bf430

Issue

👋 pipenv user trying poetry for the first time. Please forgive me if I'm misunderstanding the usage of this tool. I expected to be able to (after poetry init):

poetry add torch==1.2.*
poetry add torchvision

... and that poetry would automatically resolve the correct version of torchvision which is compatible with torch==1.2.*. Instead, I get the following:

$ poetry add torchvision
Using version ^0.4.2 for torchvision

Updating dependencies
Resolving dependencies... (0.0s)
                                                                                                           
[SolverProblemError]                                                                        
Because no versions of torchvision match >0.4.2,<0.5.0                                                   
 and torchvision (0.4.2) depends on torch (1.3.1), torchvision (>=0.4.2,<0.5.0) requires torch (1.3.1).  
So, because lulc-dvc depends on both torch (=1.2) and torchvision (^0.4.2), version solving failed.

Why is it selecting an incompatible version (^0.4.2) without accounting for existing dependencies?

@colllin colllin added the kind/bug Something isn't working as expected label Nov 16, 2019
@smsegal
Copy link

smsegal commented Jan 23, 2020

Are there any updates or workarounds for this? I'm getting the exact same issue with torchvision v0.5.0

@mkniewallner
Copy link
Member

Duplicate of #707.

@mkniewallner mkniewallner closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

4 participants