Error in Launching Anaconda Navigator

i installed anaconda on my laptop and click on anaconda navigator but it does not open, so i try to open it through anaconda prompt by typing “anaconda-navigator” but it shows this

(base) C:\Users\vishe>anaconda-navigator
Traceback (most recent call last):
** File “C:\ProgramData\anaconda3\Scripts\anaconda-navigator-script.py”, line 6, in **
** from anaconda_navigator.app.main import main**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_navigator\app\main.py”, line 19, in **
** from anaconda_navigator.app.start import start_app**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_navigator\app\start.py”, line 30, in **
** from anaconda_navigator.widgets.main_window import MainWindow**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_navigator\widgets\main_window_init_.py”, line 45, in **
** from anaconda_navigator.widgets.dialogs.login import TeamEditionAddChannelsPage**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_navigator\widgets\dialogs\login_init_.py”, line 17, in **
** from .cloud_dialogs import ***
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_navigator\widgets\dialogs\login\cloud_dialogs.py”, line 21, in **
** from anaconda_navigator.api import cloud**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_navigator\api\cloud_init_.py”, line 4, in **
** from .api import ***
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_navigator\api\cloud\api.py”, line 17, in **
** import anaconda_cloud_auth.handlers**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_cloud_auth_init_.py”, line 6, in **
** from anaconda_cloud_auth.actions import login # noqa: E402**
** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_cloud_auth\actions.py”, line 16, in **
** from anaconda_cloud_auth.config import APIConfig**
** File “C:\ProgramData\anaconda3\Lib\site-packages\anaconda_cloud_auth\config.py”, line 8, in **
** from pydantic import BaseSettings**
** File “C:\Users\vishe\AppData\Roaming\Python\Python311\site-packages\pydantic_init_.py”, line 210, in getattr**
** return _getattr_migration(attr_name)**
** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^**
** File “C:\Users\vishe\AppData\Roaming\Python\Python311\site-packages\pydantic_migration.py”, line 289, in wrapper**
** raise PydanticImportError(**
pydantic.errors.PydanticImportError: BaseSettings has been moved to the pydantic-settings package. See Migration Guide - Pydantic for more details.

For further information visit Redirecting...

please help in resolving this issuse!!

I have a same issue, don’t know how to resolved it.

@vishesh.alag03
I resolved this issue.
by Deleting folder C:\Users\vishe\AppData\Roaming\Python\Python311\

1 Like

*Deleting folder C:\Users\vishe\AppData\Roaming\Python\Python311*
– it’s a python script or site packages file, after deleting this, i think i will not able to run python files anymore?

Hello, I also encountered this problem recently. I solved it through the following methods:

  1. Run pip install pydantic-settings
  2. Modify line 8 of the following path configuration file [C:\ProgramData\anaconda3\Lib\site-packages\anaconda_cloud_auth\config.py]:
    #from pydantic import BaseSettings # Outdated reference
    from pydantic_settings import BaseSettings #Repair references
  3. Finally, save the file and re-run anaconda-navigator.
    [From Google Translate]
2 Likes

Hello, I also encountered this problem recently. I solved it through the following methods:

  1. Run pip install pydantic-settings
  2. Modify line 8 of the following path configuration file [C:\ProgramData\anaconda3\Lib\site-packages\anaconda_cloud_auth\config.py]:
    #from pydantic import BaseSettings # Outdated reference
    from pydantic_settings import BaseSettings #Repair references
  3. Finally, save the file and re-run anaconda-navigator.
    [From Google Translate]
3 Likes

My answer is here: python - Import vaex error: PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package - Stack Overflow

pip install bump-pydantic
cd ~/anaconda3/lib/python3.11/site-packages
bump-pydantic anaconda_cloud_auth
bump-pydantic anaconda_navigator