Lots of conda related errors just in the past week

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.

Got the same after upgrading from KUbuntu 24.04 to 26.04, and updating Conda.

Hey @rswitt , sorry that you and your students are getting these errors. I expect this issue is as follows:

  1. Students had an older version of Miniconda or Anaconda Distribution installed
  2. conda provided an update notice, which recommended that they run conda self update or for even older version conda update conda.
  3. Students ran the command and updated conda, but some of the plugins did not get updated

Are your students using Miniconda or Anaconda Distribution?

@Steph1 - could you share more about what errors you are getting and run conda list -n base to show what is in your base environment?

They are using the Anaconda distribution. It’s highly possible that they ran conda update conda, but would that have affected all environments?

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.

Hei @danyeaw,

I can’t tell more, because I’ve deleted the directory where Anaconda was installed.

I’ve just reinstalled it and it seems to work now.

I had an old version but succeeded in updating it next week.

Hey @rswitt, conda-repo-cli is available on the main channel now with the fixed version which is 1.0.222.

For any of your students getting this error, could you please ask them to run conda self update --all, that should update conda and all the plugins.

@danyeaw , I will communicate this to the students. I wasn’t familiar with the new(ish) conda self update command, and had to get up to speed on it!

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.

@danyeaw , that sounds very useful!

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.

ok, @danyeaw, one other observation to add.

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.

Hi @rswitt, thanks for the update, I’m glad doing a second update is working.