Shravya Boggarapu
Shravya Boggarapu

Reputation: 592

anaconda-navigator stuck on loading applications

$ anaconda-navigator 
WARNING: The conda.compat module is deprecated and will be removed in a future release.
/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/conda_api.py:1364: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  data = yaml.load(f)
2019-06-02 10:37:25,261 - ERROR download_api._get_url:416
Expecting value: line 1 column 1 (char 0)

Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/main_window.py", line 539, in setup
self.post_setup(conda_data=conda_data)
  File "/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/main_window.py", line 576, in post_setup
self.tab_home.setup(conda_data)
  File "/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/tabs/home.py", line 169, in setup
self.set_applications(applications, packages)
  File "/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/tabs/home.py", line 204, in set_applications
apps = self.api.process_apps(applications, prefix=self.current_prefix)
  File "/anaconda3/lib/python3.7/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 have seen this error posted in a few places but none of the sites give any viable solution.

The applications work if launched directly though (so for now, I'm going with that)

In case you need a detailed log, I have run the same command with --verbose and --debug options available here: https://drive.google.com/file/d/1Xump5Ns0FFX7N9Ujl0kqPZVNhXZgm4j1/view?usp=sharing

Upvotes: 1

Views: 49827

Answers (6)

Adair
Adair

Reputation: 131

I found a solution for freezing at "Loading applications".
Try to change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py
in function load_rc from

data = yaml.full_load(f) # around line 1391

to

data = yaml.safeload(f)  # quoting from Salim Tekin
                                     

Upvotes: 13

Eric
Eric

Reputation: 1

I had to uninstall a standalone version of python first. Once I did, then the install worked and the navigator launched fine.

Upvotes: 0

Jyotiprakash Nayak
Jyotiprakash Nayak

Reputation: 11

For me on windows 10, It worked with below steps

  1. tasklist | findstr "pythonw" ( shows Process IDs)
  2. taskkill /pid 99999 /f ( 99999 - is the PID of the process,kill all such process )
  3. changed the below line C:\anaconda\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 data = yaml.load(f) ( old one data = yaml.safeload(f) ( new line)
  4. start anaconda navigator from start menu

Upvotes: 1

Ujjawal Maurya
Ujjawal Maurya

Reputation: 616

Updating anaconda solved this issue for me in Manjaro

use conda update anaconda-navigator command to Update

Upvotes: 4

karmasan
karmasan

Reputation: 157

Try opening the navigator as administrator.

Upvotes: 0

Bikramjeet Singh
Bikramjeet Singh

Reputation: 686

Try the solution given by limkin092 in the link below:

https://github.com/ContinuumIO/anaconda-issues/issues/10461

It worked for me just fine.

Upvotes: 4

Related Questions