anaconda / nb_conda

Conda environment and package access extension from within Jupyter
BSD 3-Clause "New" or "Revised" License
140 stars 32 forks source link

BUG REPORT: Error: "EnvironmentLocationNotFound: Not a conda environment: C:\ProgramData\Anaconda3\envs\Anaconda3" #94

Open richlysakowski opened 3 years ago

richlysakowski commented 3 years ago

FATAL BUG !!

This extension thinks that Anaconda3 BASE is a sub-environment.

When opening this NB extension in Classic Jupyter NB, I get the following fatal errors in a JavaScript pop-up dialog.

"An error occurred while retrieving installed packages. Internal Server Error" When I dismiss the dialog another javascript dialog pops up

"EnvironmentLocationNotFound: Not a conda environment: C:\ProgramData\Anaconda3\envs\Anaconda3"

The NB_conda extension also opens a modal Windows command console that displays

"Active code page: 65001 
CONDA_PREFIX=%CONDA_PREFIX%"

When dismiss / close this command console, another one with the same message reopens.

The errors do not go away. This is a serious bug !!!

It shows 2 (two) "Default?" environments: 1) "root" at "c:\ProgramData\Anaconda3" 2) "Anaconda3" at "c:\ProgramData\Anaconda3"

In the "Conda" tab in the Classic Notebook Dashboard, it lists my conda environments TWICE. It shows 38 when I have 16. This is seriously messed up with the root environment selected 2 times.

Every time I click on the "Conda" tab, another Windows command console opens up with nothing in it. And then when I close that it gives me the Error dialog again "An error occurred while retrieving package information. Internal Server Error"

If I click on the Anaconda3 environment, it gives the errors and pop-ups described again.

I am not going to fix it manually as others have done because it crashes my Jupyter Notebook installation now.

The directory referenced in another to manually fix it does not exist on Windows 10.

anaconda_dir/lib/python3.6/site-packages/nb_conda/envmanager.py The best solution is to uninstall this package until this fatal bug is fixed.