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

conda install does not resolve pinned transitive dependencies #5757

Closed
kynan opened this issue Jul 31, 2017 · 5 comments
Closed

conda install does not resolve pinned transitive dependencies #5757

kynan opened this issue Jul 31, 2017 · 5 comments
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::packaging indicates a request regarding a package

Comments

@kynan
Copy link

kynan commented Jul 31, 2017

Consider the following scenario: my conda env already has package A at version x. I conda install D, which depends on C, which depends on B, which depends on A pinned at version y > x. There is no conflict of A version y with any other package.

conda install D does not upgrade A, leaving D in a broken state.

My concrete example involves packages on conda-forge (which I believe should not make a difference) and the packages in question are: magics dependens on python-eccodes depends on jasper depends on jpeg 9.*. The Azure notebooks root env provides jpeg 8d. conda install -y -c conda-forge magics does not upgrade jpeg.

This is using conda 4.3.22 on python 2.7. Azure notebooks currently provides the Anaconda 4.10 package set with some Azure specific extras.

@kynan kynan changed the title Pinned transitive dependencies are not resolved conda install does not resolve pinned transitive dependencies Jul 31, 2017
@kynan
Copy link
Author

kynan commented Jul 31, 2017

@kalefranz kalefranz added solver pertains to the solver source::community catch-all for issues filed by community members labels Oct 10, 2017
@kalefranz
Copy link
Contributor

Probably of interest to @mcg1969

@mcg1969
Copy link
Contributor

mcg1969 commented Oct 10, 2017

The version of jasper that is being pulled in is jasper-1.900.1-1. This version does not specify a version of jpeg. See here. Conda is doing the right thing here.

Now, the latest build of jasper, jasper-1.900-4, does indeed specify a version of jpeg. See here. But conda is not required to pull the latest build of a package. And indeed, it can't, because it can't upgrade the version of jpeg to do so. So it chooses the latest version of the package that is compatible with the underlying environment, and that's build 1.

This is, I'm afraid, a hotfixing issue. Conda-forge needs to remove or hotfix older builds of 1900.1

@kalefranz
Copy link
Contributor

This is, I'm afraid, a hotfixing issue. Conda-forge needs to remove or hotfix older builds of 1900.1

@kalefranz kalefranz added type::packaging indicates a request regarding a package and removed solver pertains to the solver labels Feb 24, 2018
@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 18, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::packaging indicates a request regarding a package
Projects
None yet
Development

No branches or pull requests

3 participants