Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda: An unexpected error ocurred on Navigator start-up

Tags:

anaconda

I had installed Anaconda, I had managed to launch it and then use R or python, and today I can no longer launch it and I get this error (I get the same error when I run the software in administrator mode)

An unexpected error ocurred on Navigator start-up
psutil.AccesDenied(pid=5740)

Traceback (most recent call last):
File "C:\Users\user\Anaconda3\lib\site-packages\psutil\_pswindows.py", line 620, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\user\Anaconda3\lib\site-packages\psutil\_pswindows.py", line 690, in cmdline
ret = cext.proc_cmdline(self.pid)
PermissionError: [WinError 5] Access Denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\user\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\user\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 108, in start_app
if misc.load_pid() is None: # A stale lock might be around
File "C:\Users\user\Anaconda3\lib\site-packages\anaconda_navigator\utils\misc.py", line 384, in load_pid
cmds = process.cmdline()
File "C:\Users\user\Anaconda3\lib\site-packages\psutil\__init__.py", line 701, in cmdline
return self._proc.cmdline()
File "C:\Users\user\Anaconda3\lib\site-packages\psutil\_pswindows.py", line 623, in wrapper
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=5740) 
like image 835
problème0123 Avatar asked Sep 20 '17 18:09

problème0123


3 Answers

I follow the suggestions: https://github.com/ContinuumIO/anaconda-issues/issues/6006 , https://github.com/ContinuumIO/anaconda-issues/issues/1984

These commands helped me:

conda update anaconda-navigator
conda update navigator-updater
anaconda-navigator --reset
like image 187
Алексей Криволапов Avatar answered Oct 18 '22 19:10

Алексей Криволапов


I use the anaconda in win10 x64 (python3.x) and I got this problem this morning as well. All the things had been done in anaconda was that I installed a package called pywinauto, then I turned off the computer and went home.

I follow the suggestion from https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/4hBTDOcDzgo by lan, I update the anaconda by using the command.

conda update anaconda-navigator

However, the error occurred the same.

Then I reboot the computer and restart the anaconda, magic thing happens! the anaconda works fine!

I think maybe some configuration has been changed when I install the new package, and this change is conflicted with the current configuration which you need to reboot the computer to fix it. you should note that turn off computer then restart it is not equal to reboot it.

So, just reboot the computer and it will be fine.

like image 32
shawpan Avatar answered Oct 18 '22 17:10

shawpan


Facing the same error initially, I tried other solutions given here by executing the commands in anaconda terminal but nothing works in my case as I was getting the following error on executing command

Load Error: invalid yaml at position 0

This means .condarc file is either corrupted due to some reason or there may be some changes in it. The solution that worked for me is to delete .condarc. As the .condarc configuration file follows simple YAML syntax. .condarc is automatically created in your home directory the time you run anaconda navigator.

Conda will re-create it, again.

Hope it Helps!!

like image 2
PN10 Avatar answered Oct 18 '22 18:10

PN10