-
Notifications
You must be signed in to change notification settings - Fork 430
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
Catch PackageNotFoundError
for DependencyNeedsBuildingError
#5257
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
LinkError, | ||
LockError, | ||
NoPackagesFoundError, | ||
PackagesNotFoundError, | ||
PaddingError, | ||
UnsatisfiableError, | ||
) | ||
|
@@ -965,7 +966,11 @@ def get_install_actions( | |
with capture(): | ||
try: | ||
precs = _install_actions(prefix, index, specs)["LINK"] | ||
except (NoPackagesFoundError, UnsatisfiableError) as exc: | ||
except ( | ||
NoPackagesFoundError, | ||
UnsatisfiableError, | ||
PackagesNotFoundError, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kenodegard, why did we had this change in 7acbbf2 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had added it in the prior commit (7539a73) as I was trying to debug a weird error (see 7acbbf2#r1517170310) Since the fix had nothing to do with catching See the full diff for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I landed at 7acbbf2 as the first commit to show the regression but didn't realize that was an intermediate change. Thanks, that's very helpful. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I guess There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to adjust anything in conda-libmamba-solver? |
||
) as exc: | ||
raise DependencyNeedsBuildingError(exc, subdir=subdir) | ||
except ( | ||
SystemExit, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to use the non-aliased
ResolvePackageNotFound
here for clarification.(
conda.exceptions
/conda.exports
setsNoPackagesFound = NoPackagesFoundError = ResolvePackageNotFound
.)