Improve "Prefix record insertion error:" assertion error #12870
Labels
backlog
issue has been triaged but has not been earmarked for any upcoming release
source::anaconda
created by members of Anaconda, Inc.
type::bug
describes erroneous operation, use severity::* to classify the type
Checklist
What happened?
Every once in a while we get users reporting the assertion error raised here:
conda/conda/core/prefix_data.py
Lines 103 to 107 in ac59821
Here are the following issues that have reported it:
AssertionError('Prefix record insertion error: a record with name ca-certificates already exists in the prefix.)
#12339What should happen?
I think the better solution would be to replace this assertion error with an actual conda error. Furthermore, we should also provide some sort of actionable advice. I believe that this error could be overcome by simply removing and recreating the environment. If it's the base environment, we will want to recommend another action (perhaps reverting it to an early state).
No matter what happens, I do not want a message there that instructs users to create new issues in this queue without giving any advice on how they may be able to fix it.
Additional context
I also think that it would be safe to close the issues linked above once we have completed this issue.
The text was updated successfully, but these errors were encountered: