-
Notifications
You must be signed in to change notification settings - Fork 381
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
Prune impossible packages before solving #1578
Comments
Helping the solver out a little by explicitly pinning the python version eventually resulted in a meaningful error message:
i.e. my |
Anyway, just thought I'd document this in case it's useful. I don't think there's anything directly actionable here so feel free to note and close. |
Assuming this is possible it might help improve the error message in situations such as in #1587 |
@dhirschfeld we've recently exposed additional structured information that the solver can give to Python. Now we need to find someone well versed in graph theory to see if we can exploit the additional error information to get better messages ... :) |
I'll go ahead and close this since it's just random musings and it sounds like you've already got a path towards a (better) solution. Unfortunately, my graph theory is non-existent so I'll just eagerly watch from the sidelines! 😄 👀 |
I'm wondering if pruning the repodata before solving might result in better error messages when things go wrong.
The solver error messages are definitely a lot better than previously but, when things do go wrong in a complex environment the user is still often presented with a misleading error message.
In the example below I was trying to update
perspective
and got an error message aboutnumpy
not being available:numpy
obviously was available but trying to install it gave an error about py39 when my environment was py310:This is obviously a red-herring as the solver should never choose a package with an incompatible Python version.
I'm wondering if this type of error could be avoided altogether if any packages with incompatible python versions were pruned from the repodata before being passed to the solver?
The text was updated successfully, but these errors were encountered: