Reputation: 71
I tried to install 'satpy' on anaconda, shows:
conda install satpy
Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (D:\Anaconda\Lib\site-packages\conda\plugins\types.py))
Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (D:\Anaconda\Lib\site-packages\conda\plugins\types.py))
and this error seems to accur in recent days,hope u guys can solve this(a possible way:uninstall anaconda & reinstall,i find an answer on Anaconda Community,someone fixed this,but I don't wanna reinstall it...)
Same as above:
I tried to switch another env, update conda, nothing works
Upvotes: 6
Views: 22589
Reputation: 1
I was facing the same problem, and I solved it by removing the anaconda-cloud-auth package. Here’s what worked for me:
Open your command prompt or Anaconda Prompt. Run the following command to remove the anaconda-cloud-auth package:
conda remove anaconda-cloud-auth
This seems to be a relatively new problem, and there isn't a well-documented solution yet. However, removing anaconda-cloud-auth has been the only way I've found to use Anaconda without any problems for now.
Hope this helps!
Upvotes: -1
Reputation: 45
I had a similar problem (a similar error message would show up when I switched conda environments, and it started happening after I updated the Anaconda Navigator via the graphical interface).
Short answer:
In my case, just updating conda did not work, but forcing conda to update to a recent version did work. I switched from version 23.something to 24.5.0 and it solved the problem. I updated conda using the Anaconda Navigator (right click on the conda package > Mark for specific version installation > 24.5.0). I am not sure what the command-line equivalent is, I guess something like
conda install conda=24.5.0
or
conda update conda=24.5.0
In my case, just asking Anaconda to update conda, without specifying the version number, only updated conda to version 23.something, which is "too old" (see below).
Some more details as to what I think is happening:
The error message suggests that some part of the anaconda-cloud-auth plugin code is looking for an object named "ChannelAuthBase" defined in conda/plugins/types.py. If we look at a recent version of types.py, we see that ChannelAuthBase is indeed defined. But if we look at an older version, for example this one (roughly a year ago), we see that ChannelAuthBase was not defined then. I guess the dependencies of the anaconda-cloud-auth plugin are not properly set in the package database? I did not track down in which specific version of conda class ChannelAuthBase was introduced, but if you install a fairly recent one, you should be ok.
Anyway, I hope this helps fix your issue without having to reinstall Anaconda as a whole, which I was reluctant to do too.
Upvotes: 0
Reputation: 1693
This solved the issue for me:
python -m pip uninstall anaconda-cloud-auth
conda update conda
conda install “anaconda-cloud-auth>0.5.0”
Upvotes: 3
Reputation: 1
I encountered the same error after trying to install Tensorflow and updating conda using the command. Unfortunately, I tried various methods, but only ended up damaging the existing virtual environments.. I resolved it by reinstalling.
I reinstalled Anaconda using an older installation file. Specially the version from 2023.09-0
(I'm not entirely sure, but I believe Updating conda was the problem)
Upvotes: -1