English 中文(简体)
Anaconda Navigator won t launch, download_api error (Windows 10)
原标题:

Last night I ran a Windows update and this morning Anaconda Navigator hangs when I try to launch it. After googling I ran some updates in Anaconda prompt:

conda update
conda update anaconda-navigator

And then when I try to launch anaconda navigator from the prompt I get this error:

2019-03-01 09:23:00,212 - ERROR download_api._get_url:416
Expecting value: line 1 column 1 (char 0)

Traceback (most recent call last):
File "C:UsersxxxxAnaconda3libsite-packagesanaconda_navigatorwidgetsmain_window.py", line 539, in setup
self.post_setup(conda_data=conda_data)
File "C:UsersxxxxAnaconda3libsite-packagesanaconda_navigatorwidgetsmain_window.py", line 576, in post_setup
self.tab_home.setup(conda_data)
File "C:UsersxxxxAnaconda3libsite-packagesanaconda_navigatorwidgets	abshome.py", line 169, in setup
self.set_applications(applications, packages)
File "C:UsersxxxxAnaconda3libsite-packagesanaconda_navigatorwidgets	abshome.py", line 204, in set_applications
apps = self.api.process_apps(applications, prefix=self.current_prefix)
File "C:UsersxxxxAnaconda3libsite-packagesanaconda_navigatorapianaconda_api.py", line 888, in process_apps
versions=[vsdata.get( productVersion )],
AttributeError:  str  object has no attribute  get 

I use Jupyter Notebook and Spyder and this is causing me a major headache. Thanks in advance!

问题回答

There s another solution (not the best, but it works). Anaconda can t retrieve vscode version for any reason.

You need to replace line 888 in file "C:UsersxxxxAnaconda3libsite-packagesanaconda_navigatorapianaconda_api.py"

from versions=[vsdata.get( productVersion )], to versions=["1b8e8302e405050205e69b59abb3559592bb9e60"],

After lots of restarts and lots of googling I found a simple fix:

conda update navigator-updater

It works...for now

For me it worked only when I m connected to the internet. Offline, it fails to start.

As a ubuntu user it happened with me too, i used to remove anaconda-navigator and install it again through commands

-conda remove anaconda-navigator

-conda install anaconda-navigator

if it didn t work, check the troubleshooting page here https://docs.anaconda.com/free/navigator/troubleshooting/

with other solutions





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签