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

rattler.solve sometimes can't select pinned local versions #1033

Open
2 tasks done
calebzulawski opened this issue Jan 24, 2025 · 0 comments
Open
2 tasks done

rattler.solve sometimes can't select pinned local versions #1033

calebzulawski opened this issue Jan 24, 2025 · 0 comments

Comments

@calebzulawski
Copy link
Contributor

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

I have a spec mypackage ~=2.0. If I have a previously installed version 2.0.0+fastbuild passed via pinned_packages, I sometimes get one of two errors:

exceptions.SolverException: Cannot solve the request because of: No candidates were found for mypackage ~=2.0.

or

exceptions.SolverException: Cannot solve the request because of: The following packages are incompatible
└─ mypackage ~=2.0 can be installed with any of the following options:
   └─ mypackage 2.0.0 | 2.0.0
├─ mypackage 2.0.0+fastbuild is locked, but another version is required as reported above
├─ mypackage 2.0.0+fastbuild is locked, but another version is required as reported above

Additional Context

In some of these cases, the pinned package is not in channels passed to rattler.solve (because the package was originally installed out of another channel). I think pinned packages need to be considered regardless of if they're present in any of the channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant