Just in the past week 5-10 of my students have started getting conda errors like:
error while loading conda entry port: repo (cannot import name ‘condaSubcommand’ from ‘conda.plugins’
after creating a new conda environment. This seems to affect even their existing environments? I cannot seem to replicate the issue on my systems, so I don’t know what’s going on. All new environments seem to inherit the issue. Any idea why this might be happening?
I haven’t been able to verify if a full uninstall / reinstall fixes the issue yet.
Hi @rswitt, thanks for confirming that. I expect that the problem is that one of the packages that comes with the Anaconda Distribution is using an import that was deprecated and removed.
It is expected that it impacts all environments, because the issues are coming from running conda out of the base environment.
Two of the issues (older versions of conda-anaconda-tos and conda-anaconda-telemetry) can be resolved with running an update on all plugins
conda self update --all
That leaves one more issue:
Error while loading conda entry point: repo (cannot import name 'CondaSubcommand' from 'conda.plugins'
This is an issue with the conda-repo-cli package. Anaconda already updated the package, but the new version isn’t yet on main. The team is working on it at the highest priority. I would expect that this will be fixed in the next couple of days.
Although it would be possible to remove this package as a workaround, it is a dependency of Anaconda Navigator and I would expect your students are using that as well.
As soon as an updated version of conda-repo-cli is on main, I’ll post an update right away. Thanks so much for your patience and sorry again that you ran in to this.
Hey @rswitt, yup, hopefully it makes updates go more smoothly in the future. We are also working on installers with a new feature called Protected Base Environment, which will help prevent users from accidentally breaking their base environment.
Please let me know how the updates go and if you run in to any more issues.
I was able to troubleshoot with 1 student. “conda self update” did not solve the issue, but “conda self update --all” did, which is what you recommended.
I have requested that the other students having an issue attempt the fix and let me know what the result is. I’ll let you know when I hear back.
When running “conda self update --all”, I’m finding that a lot of the students are encountering some conda errors when running it, and the errors are not all resolved.
HOWEVER, running “conda self update --all” again, seems to run without errors, and then all the errors seem to be resolved.
I suspect that some of the original conda errors are preventing all the necessary packages from getting updated, but enough are updated that conda self update, when run again can complete successfully.