shortyDS
shortyDS

Reputation: 31

Anaconda Navigator won't launch, download_api error (Windows 10)

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

conda update
conda update anaconda-navigator

And then when I tried to launch Anaconda Navigator from the prompt, I got 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:\Users\xxxx\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 539, in setup
self.post_setup(conda_data=conda_data)
File "C:\Users\xxxx\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 576, in post_setup
self.tab_home.setup(conda_data)
File "C:\Users\xxxx\Anaconda3\lib\site-packages\anaconda_navigator\widgets\tabs\home.py", line 169, in setup
self.set_applications(applications, packages)
File "C:\Users\xxxx\Anaconda3\lib\site-packages\anaconda_navigator\widgets\tabs\home.py", line 204, in set_applications
apps = self.api.process_apps(applications, prefix=self.current_prefix)
File "C:\Users\xxxx\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_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.

Upvotes: 2

Views: 8219

Answers (5)

shouvik dey
shouvik dey

Reputation: 1

Only reinstalling anaconda worked for me (I have completely removed and installed anaconda3)

Upvotes: 0

mahmoud khaled
mahmoud khaled

Reputation: 11

As a Ubuntu user, it happened with me too. I used to remove anaconda-navigator and install it again through these commands:

conda remove anaconda-navigator
conda install anaconda-navigator

If it didn't work, check the troubleshooting page with other solutions.

Upvotes: 1

Vasiliy Starling
Vasiliy Starling

Reputation: 51

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

You need to replace line 888 in file "C:\Users\xxxx\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py" from

versions=[vsdata.get('productVersion')]

to

versions=["1b8e8302e405050205e69b59abb3559592bb9e60"],

Upvotes: 5

shortyDS
shortyDS

Reputation: 31

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

conda update navigator-updater

It works...for now

Upvotes: 0

Alex Deft
Alex Deft

Reputation: 2787

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

Upvotes: 0

Related Questions