anaconda-navigator 卡在加载应用程序上

Shr*_*apu 0 python macos anaconda macos-high-sierra

$ 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'
Run Code Online (Sandbox Code Playgroud)

我在一些地方看到了这个错误,但没有一个网站给出任何可行的解决方案。

如果直接启动,应用程序就可以工作(所以现在,我会这样做)

如果您需要详细的日志,我可以使用此处提供的 --verbose 和 --debug 选项运行相同的命令:https: //drive.google.com/file/d/1Xump5Ns0FFX7N9Ujl0kqPZVNhXZgm4j1/view ?usp=sharing

小智 12

我找到了冻结的解决方案"Loading applications"。 尝试将函数中的
文件更改 为anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py
load_rc

data = yaml.full_load(f) # around line 1391
Run Code Online (Sandbox Code Playgroud)

data = yaml.safeload(f)  # quoting from Salim Tekin
                                     
Run Code Online (Sandbox Code Playgroud)