ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 223 forks source link

Navigator hangs at loading applications #10461

Open kfeaginsiii opened 5 years ago

kfeaginsiii commented 5 years ago

Actual Behavior

Anaconda hangs at splash screen, 'loading applications' Clicking on the splash screen triggers a 'Python is not responding' windows message

Cmd window output: (base) C:\Users\KFeagins>anaconda-navigator <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>

Expected Behavior

Anaconda Navigator should load.

Steps to Reproduce

Open Anaconda Navigator. Note, I am behind a proxy. I add this as the output suggest a connection issue.

Anaconda or Miniconda version: 2018.12
Operating System: Windows 10
conda info
     active environment : base
    active env location : C:\Users\KFeagins\AppData\Local\Continuum\anaconda3
            shell level : 1
       user config file : C:\Users\KFeagins\.condarc
 populated config files : C:\Users\KFeagins\.condarc
          conda version : 4.5.12
    conda-build version : 3.17.6
         python version : 3.7.1.final.0
       base environment : C:\Users\KFeagins\AppData\Local\Continuum\anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\pkgs
                          C:\Users\KFeagins\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\envs
                          C:\Users\KFeagins\AppData\Local\conda\conda\envs
                          C:\Users\KFeagins\.conda\envs
               platform : win-64
             user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.15063
          administrator : False
             netrc file : None
           offline mode : False
conda list --show-channel-urls
_ipyw_jlab_nb_ext_conf    0.1.0                    py37_0    defaults
alabaster                 0.7.12                   py37_0    defaults
anaconda                  2018.12                  py37_0    defaults
anaconda-client           1.7.2                    py37_0    defaults
anaconda-navigator        1.9.6                    py37_0    defaults
anaconda-project          0.8.2                    py37_0    defaults
asn1crypto                0.24.0                   py37_0    defaults
astroid                   2.1.0                    py37_0    defaults
astropy                   3.1              py37he774522_0    defaults
atomicwrites              1.2.1                    py37_0    defaults
attrs                     18.2.0           py37h28b3542_0    defaults
babel                     2.6.0                    py37_0    defaults
backcall                  0.1.0                    py37_0    defaults
backports                 1.0                      py37_1    defaults
backports.os              0.1.1                    py37_0    defaults
backports.shutil_get_terminal_size 1.0.0                    py37_2    defaults
beautifulsoup4            4.6.3                    py37_0    defaults
bitarray                  0.8.3            py37hfa6e2cd_0    defaults
bkcharts                  0.2                      py37_0    defaults
blas                      1.0                         mkl    defaults
blaze                     0.11.3                   py37_0    defaults
bleach                    3.0.2                    py37_0    defaults
blosc                     1.14.4               he51fdeb_0    defaults
bokeh                     1.0.2                    py37_0    defaults
boto                      2.49.0                   py37_0    defaults
bottleneck                1.2.1            py37h452e1ab_1    defaults
bzip2                     1.0.6                hfa6e2cd_5    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.11.29               py37_0    defaults
cffi                      1.11.5           py37h74b6da3_1    defaults
chardet                   3.0.4                    py37_1    defaults
click                     7.0                      py37_0    defaults
cloudpickle               0.6.1                    py37_0    defaults
clyent                    1.2.2                    py37_1    defaults
colorama                  0.4.1                    py37_0    defaults
comtypes                  1.1.7                    py37_0    defaults
conda                     4.5.12                   py37_0    defaults
conda-build               3.17.6                   py37_0    defaults
conda-env                 2.6.0                         1    defaults
conda-verify              3.1.1                    py37_0    defaults
console_shortcut          0.1.1                         3    defaults
contextlib2               0.5.5                    py37_0    defaults
cryptography              2.4.2            py37h7a1dbc1_0    defaults
curl                      7.63.0            h2a8f88b_1000    defaults
cycler                    0.10.0                   py37_0    defaults
cython                    0.29.2           py37ha925a31_0    defaults
cytoolz                   0.9.0.1          py37hfa6e2cd_1    defaults
dask                      1.0.0                    py37_0    defaults
dask-core                 1.0.0                    py37_0    defaults
datashape                 0.5.4                    py37_1    defaults
decorator                 4.3.0                    py37_0    defaults
defusedxml                0.5.0                    py37_1    defaults
distributed               1.25.1                   py37_0    defaults
docutils                  0.14                     py37_0    defaults
entrypoints               0.2.3                    py37_2    defaults
et_xmlfile                1.0.1                    py37_0    defaults
fastcache                 1.0.2            py37hfa6e2cd_2    defaults
filelock                  3.0.10                   py37_0    defaults
flask                     1.0.2                    py37_1    defaults
flask-cors                3.0.7                    py37_0    defaults
freetype                  2.9.1                ha9979f8_1    defaults
future                    0.17.1                   py37_0    defaults
get_terminal_size         1.0.0                h38e98db_0    defaults
gevent                    1.3.7            py37he774522_1    defaults
glob2                     0.6                      py37_1    defaults
greenlet                  0.4.15           py37hfa6e2cd_0    defaults
h5py                      2.8.0            py37h3bdd7fb_2    defaults
hdf5                      1.10.2               hac2f561_1    defaults
heapdict                  1.0.0                    py37_2    defaults
html5lib                  1.0.1                    py37_0    defaults
icc_rt                    2019.0.0             h0cc432a_1    defaults
icu                       58.2                 ha66f8fd_1    defaults
idna                      2.8                      py37_0    defaults
imageio                   2.4.1                    py37_0    defaults
imagesize                 1.1.0                    py37_0    defaults
importlib_metadata        0.6                      py37_0    defaults
intel-openmp              2019.1                      144    defaults
ipykernel                 5.1.0            py37h39e3cac_0    defaults
ipython                   7.2.0            py37h39e3cac_0    defaults
ipython_genutils          0.2.0                    py37_0    defaults
ipywidgets                7.4.2                    py37_0    defaults
isort                     4.3.4                    py37_0    defaults
itsdangerous              1.1.0                    py37_0    defaults
jdcal                     1.4                      py37_0    defaults
jedi                      0.13.2                   py37_0    defaults
jinja2                    2.10                     py37_0    defaults
jpeg                      9b                   hb83a4c4_2    defaults
jsonschema                2.6.0                    py37_0    defaults
jupyter                   1.0.0                    py37_7    defaults
jupyter_client            5.2.4                    py37_0    defaults
jupyter_console           6.0.0                    py37_0    defaults
jupyter_core              4.4.0                    py37_0    defaults
jupyterlab                0.35.3                   py37_0    defaults
jupyterlab_server         0.2.0                    py37_0    defaults
keyring                   17.0.0                   py37_0    defaults
kiwisolver                1.0.1            py37h6538335_0    defaults
krb5                      1.16.1               hc04afaa_7    defaults
lazy-object-proxy         1.3.1            py37hfa6e2cd_2    defaults
libarchive                3.3.3                h0643e63_5    defaults
libcurl                   7.63.0            h2a8f88b_1000    defaults
libiconv                  1.15                 h1df5818_7    defaults
libpng                    1.6.35               h2a8f88b_0    defaults
libsodium                 1.0.16               h9d3ae62_0    defaults
libssh2                   1.8.0                h7a1dbc1_4    defaults
libtiff                   4.0.9                h36446d0_2    defaults
libxml2                   2.9.8                hadb2253_1    defaults
libxslt                   1.1.32               hf6f1972_0    defaults
llvmlite                  0.26.0           py37ha925a31_0    defaults
locket                    0.2.0                    py37_1    defaults
lxml                      4.2.5            py37hef2cd61_0    defaults
lz4-c                     1.8.1.2              h2fa13f4_0    defaults
lzo                       2.10                 h6df0209_2    defaults
m2w64-gcc-libgfortran     5.3.0                         6    defaults
m2w64-gcc-libs            5.3.0                         7    defaults
m2w64-gcc-libs-core       5.3.0                         7    defaults
m2w64-gmp                 6.1.0                         2    defaults
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    defaults
markupsafe                1.1.0            py37he774522_0    defaults
matplotlib                3.0.2            py37hc8f65d3_0    defaults
mccabe                    0.6.1                    py37_1    defaults
menuinst                  1.4.14           py37hfa6e2cd_0    defaults
mistune                   0.8.4            py37he774522_0    defaults
mkl                       2019.1                      144    defaults
mkl-service               1.1.2            py37hb782905_5    defaults
mkl_fft                   1.0.6            py37h6288b17_0    defaults
mkl_random                1.0.2            py37h343c172_0    defaults
more-itertools            4.3.0                    py37_0    defaults
mpmath                    1.1.0                    py37_0    defaults
msgpack-python            0.5.6            py37he980bc4_1    defaults
msys2-conda-epoch         20160418                      1    defaults
multipledispatch          0.6.0                    py37_0    defaults
navigator-updater         0.2.1                    py37_0    defaults
nbconvert                 5.4.0                    py37_1    defaults
nbformat                  4.4.0                    py37_0    defaults
networkx                  2.2                      py37_1    defaults
nltk                      3.4                      py37_1    defaults
nose                      1.3.7                    py37_2    defaults
notebook                  5.7.4                    py37_0    defaults
numba                     0.41.0           py37hf9181ef_0    defaults
numexpr                   2.6.8            py37hdce8814_0    defaults
numpy                     1.15.4           py37h19fb1c0_0    defaults
numpy-base                1.15.4           py37hc3f5095_0    defaults
numpydoc                  0.8.0                    py37_0    defaults
odo                       0.5.1                    py37_0    defaults
olefile                   0.46                     py37_0    defaults
openpyxl                  2.5.12                   py37_0    defaults
openssl                   1.1.1a               he774522_0    defaults
packaging                 18.0                     py37_0    defaults
pandas                    0.23.4           py37h830ac7b_0    defaults
pandoc                    1.19.2.1             hb2460c7_1    defaults
pandocfilters             1.4.2                    py37_1    defaults
parso                     0.3.1                    py37_0    defaults
partd                     0.3.9                    py37_0    defaults
path.py                   11.5.0                   py37_0    defaults
pathlib2                  2.3.3                    py37_0    defaults
patsy                     0.5.1                    py37_0    defaults
pep8                      1.7.1                    py37_0    defaults
pickleshare               0.7.5                    py37_0    defaults
pillow                    5.3.0            py37hdc69c19_0    defaults
pip                       18.1                     py37_0    defaults
pkginfo                   1.4.2                    py37_1    defaults
pluggy                    0.8.0                    py37_0    defaults
ply                       3.11                     py37_0    defaults
prometheus_client         0.5.0                    py37_0    defaults
prompt_toolkit            2.0.7                    py37_0    defaults
psutil                    5.4.8            py37he774522_0    defaults
py                        1.7.0                    py37_0    defaults
pycodestyle               2.4.0                    py37_0    defaults
pycosat                   0.6.3            py37hfa6e2cd_0    defaults
pycparser                 2.19                     py37_0    defaults
pycrypto                  2.6.1            py37hfa6e2cd_9    defaults
pycurl                    7.43.0.2         py37h7a1dbc1_0    defaults
pyflakes                  2.0.0                    py37_0    defaults
pygments                  2.3.1                    py37_0    defaults
pylint                    2.2.2                    py37_0    defaults
pyodbc                    4.0.25           py37ha925a31_0    defaults
pyopenssl                 18.0.0                   py37_0    defaults
pyparsing                 2.3.0                    py37_0    defaults
pyqt                      5.9.2            py37h6538335_2    defaults
pysocks                   1.6.8                    py37_0    defaults
pytables                  3.4.4            py37he6f6034_0    defaults
pytest                    4.0.2                    py37_0    defaults
pytest-arraydiff          0.3              py37h39e3cac_0    defaults
pytest-astropy            0.5.0                    py37_0    defaults
pytest-doctestplus        0.2.0                    py37_0    defaults
pytest-openfiles          0.3.1                    py37_0    defaults
pytest-remotedata         0.3.1                    py37_0    defaults
python                    3.7.1                h8c8aaf0_6    defaults
python-dateutil           2.7.5                    py37_0    defaults
python-libarchive-c       2.8                      py37_6    defaults
pytz                      2018.7                   py37_0    defaults
pywavelets                1.0.1            py37h8c2d366_0    defaults
pywin32                   223              py37hfa6e2cd_1    defaults
pywinpty                  0.5.5                 py37_1000    defaults
pyyaml                    3.13             py37hfa6e2cd_0    defaults
pyzmq                     17.1.2           py37hfa6e2cd_0    defaults
qt                        5.9.7            vc14h73c81de_0  [vc14]  defaults
qtawesome                 0.5.3                    py37_0    defaults
qtconsole                 4.4.3                    py37_0    defaults
qtpy                      1.5.2                    py37_0    defaults
requests                  2.21.0                   py37_0    defaults
rope                      0.11.0                   py37_0    defaults
ruamel_yaml               0.15.46          py37hfa6e2cd_0    defaults
scikit-image              0.14.1           py37ha925a31_0    defaults
scikit-learn              0.20.1           py37h343c172_0    defaults
scipy                     1.1.0            py37h29ff71c_2    defaults
seaborn                   0.9.0                    py37_0    defaults
send2trash                1.5.0                    py37_0    defaults
setuptools                40.6.3                   py37_0    defaults
simplegeneric             0.8.1                    py37_2    defaults
singledispatch            3.4.0.3                  py37_0    defaults
sip                       4.19.8           py37h6538335_0    defaults
six                       1.12.0                   py37_0    defaults
snappy                    1.1.7                h777316e_3    defaults
snowballstemmer           1.2.1                    py37_0    defaults
sortedcollections         1.0.1                    py37_0    defaults
sortedcontainers          2.1.0                    py37_0    defaults
sphinx                    1.8.2                    py37_0    defaults
sphinxcontrib             1.0                      py37_1    defaults
sphinxcontrib-websupport  1.1.0                    py37_1    defaults
spyder                    3.3.2                    py37_0    defaults
spyder-kernels            0.3.0                    py37_0    defaults
sqlalchemy                1.2.15           py37he774522_0    defaults
sqlite                    3.26.0               he774522_0    defaults
statsmodels               0.9.0            py37h452e1ab_0    defaults
sympy                     1.3                      py37_0    defaults
tblib                     1.3.2                    py37_0    defaults
terminado                 0.8.1                    py37_1    defaults
testpath                  0.4.2                    py37_0    defaults
tk                        8.6.8                hfa6e2cd_0    defaults
toolz                     0.9.0                    py37_0    defaults
tornado                   5.1.1            py37hfa6e2cd_0    defaults
tqdm                      4.28.1           py37h28b3542_0    defaults
traitlets                 4.3.2                    py37_0    defaults
unicodecsv                0.14.1                   py37_0    defaults
urllib3                   1.24.1                   py37_0    defaults
vc                        14.1                 h0510ff6_4    defaults
vs2015_runtime            14.15.26706          h3a45250_0    defaults
wcwidth                   0.1.7                    py37_0    defaults
webencodings              0.5.1                    py37_1    defaults
werkzeug                  0.14.1                   py37_0    defaults
wheel                     0.32.3                   py37_0    defaults
widgetsnbextension        3.4.2                    py37_0    defaults
win_inet_pton             1.0.1                    py37_1    defaults
win_unicode_console       0.5                      py37_0    defaults
wincertstore              0.2                      py37_0    defaults
winpty                    0.4.3                         4    defaults
wrapt                     1.10.11          py37hfa6e2cd_2    defaults
xlrd                      1.2.0                    py37_0    defaults
xlsxwriter                1.1.2                    py37_0    defaults
xlwings                   0.15.1                   py37_0    defaults
xlwt                      1.3.0                    py37_0    defaults
xz                        5.2.4                h2fa13f4_4    defaults
yaml                      0.1.7                hc54c509_2    defaults
zeromq                    4.2.5                he025d50_1    defaults
zict                      0.1.3                    py37_0    defaults
zlib                      1.2.11               h62dcd97_3    defaults
zstd                      1.3.7                h508b16e_0    defaults
kfeaginsiii commented 5 years ago

Additional Troubleshooting notes: Moving off network (that was behind a proxy) to a hotspot allows Navigator to open.

Disconnecting from all network connections allows Navigator to open.

Reconnecting to network (that is behind a proxy) fails to open again.

Reverting to Anaconda 5.3.1 does not resolve.

Adding proxy_servers to .condarc causes the below error:

followed this guide: https://conda.io/docs/user-guide/configuration/use-condarc.html#configure-conda-for-use-behind-a-proxy-server-proxy-servers

Error: Traceback (most recent call last): File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler return_value = func(*args, **kwargs) File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 150, in start_app window = run_app(splash) File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 65, in run_app window = MainWindow(splash=splash, tab_project=False) File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 168, in init self.api = AnacondaAPI() File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 2294, in AnacondaAPI ANACONDA_API = _AnacondaAPI() File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 91, in init self._conda_api = CondaAPI() File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 1767, in CondaAPI CONDA_API = _CondaAPI() File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 353, in init self.sys_rc_path = join(self.ROOT_PREFIX, '.condarc') File "C:\Users\KFeagins\AppData\Local\Continuum\anaconda3\lib\ntpath.py", line 76, in join path = os.fspath(path) TypeError: expected str, bytes or os.PathLike object, not NoneType

kfeaginsiii commented 5 years ago

Discussed with a co-worker. Apparently it will open, but takes a really long time (>10 minutes) if left alone. I was clicking the splash screen, which is where I was encountering the error. That said, it looks like the issue should be closed/renamed, as it is likely some of our security software stepping on it.

goanpeca commented 5 years ago

Thanks for the detail explanations!

limkin092 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

bobbyroberts99 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

I've been using Anaconda Navigator without issue for a while, but today it hung at 'loading applications.' This suggestion did the trick for me.

MichlF commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

That worked for me too.

ss3456 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Worked for me. Thank you :)

evan-blaisdell commented 5 years ago

Only one comment since December and then four within minutes. Crazy. And it worked for me too.

MartynWimpenny commented 5 years ago

After an hour of updates and installs this little nugget sorted it!! Think its a windows update thing - well done Bill!

TheJB2001 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Thx dude.

palakgupta1020 commented 5 years ago

Worked for me too. Thanks!

MartynWimpenny commented 5 years ago

No probs – maybe a defender thing.

Cheers

Martyn Wimpenny 07977 456003

From: TheJB2001 Sent: Tuesday, April 16, 2019 23:33 To: ContinuumIO/anaconda-issues Cc: MartynWimpenny; Comment Subject: Re: [ContinuumIO/anaconda-issues] Navigator hangs at loadingapplications (#10461)

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f) Thx dude. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

correiav commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Worked for me too! Thank you so much for sharing =)

joshuaHallee commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Had to restart my PC, but this solution worked. Thank you!

swdev1202 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

You are awesome!

nico2g commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

I do not seem to have a site-package folder in my Anaconda version (Mac). Any ideas?

ss3456 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

I do not seem to have a site-package folder in my Anaconda version (Mac). Any ideas?

I couldn't find it either but then I searched for it in finder and it came up

jveitchv commented 5 years ago

Tried Anaconda for the first time with Windows 10 and exact same problem. Exact same solution.

eddiebeltran33 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

This solution also works for Ubuntu 18.04. Thank you so much!

tharindu99 commented 5 years ago

awesome.. worked for me .. MAC one

harsh204016 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Thank you it worked for me also 👍

Jihad commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

wow.. it worked like a charm!

agnimish commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

That was awesome. It worked very well. Thanks!

ankon111 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

This worked for me too. Great suggestion.

didier1969 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

That worked for me too ! Many thanks !

pikami772 commented 5 years ago

Discussed with a co-worker. Apparently it will open, but takes a really long time (>10 minutes) if left alone. I was clicking the splash screen, which is where I was encountering the error. That said, it looks like the issue should be closed/renamed, as it is likely some of our security software stepping on it.

Seems like you were right. I fixed the issue just by changing firewall zone on my Fedora 30, no changes to the file were necessary.

ghost commented 5 years ago

Slightly ironic that dev tool hangs on load. Wait though, and eventually it should dig itself out after looking unresponsive for around 10 min.

aint nobody got time for dat... keep the issue open

ismailsu commented 5 years ago

load > "safeload" works for me. Thank you...

Duvaragesh commented 5 years ago

"data = yaml.safeload(f)" worked for me too. Thank you :)

Svetko commented 5 years ago

Had the same issue, seemingly caused by limitations in corporate internet settings. Loading Anaconda Navigator took a lot of time, staying at "loading applications...". Furthermore, updating package index from the Environments page in the Anaconda Navigator would hang (without any timeout).

using the solution helped in my case as well! thanks!

CusiniM commented 5 years ago

"load > safeload" worked for me as well on rhel7.

MulesNose commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Excellent !!

KermodeS commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

This doesn't work for me. On Windows 10, Ubuntu installed on WSL. After updating Anaconda this issue started (haven't updated in a while). 1) I uninstalled and reinstalled Anaconda, did the updates, but this did not fix it. Seems to have made thing worse lol, now I get a "conda: command not found" error before the command line appears. 2) Changed file as suggested saved then restarted computer. Confirmed file was still with the update but the problem persists.

What other ways can I try to solve this? Attached photo, I hope it helps! Loading applications problem

gabriellima commented 5 years ago

The change from data = yaml.load(f) to data = yaml.safeload(f) did the trick for me as well.

KermodeS commented 5 years ago

It's strange, I edited the code as shown below but the error keeps arriving showing yaml.load(f) not yaml.safeload(f). I only found one instance of the code. Is there something else I need to do, aside from adding "safe" to the line of code to make this edit active?

I noticed that this section of code seems to be in between these "" "". Could this be the problem?

Loading applications problem 2

dcardonav commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

The fix worked like a charm for me. Thx!

drumttocs8 commented 5 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Solved my issue on win10. Seems like this should be the way it comes.

mjtpena commented 4 years ago

Awesome. changing it to safeload(f) did the trick.

wikwok commented 4 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

worked for me too! brilliant! thank you!

karma0san commented 4 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

This didn't work for me but running the navigator as admin solve the problem for me.

rickmunene commented 4 years ago

I found an solution for freezing at "Loading applications". Try change the file at anaconda3\Lib\site-packages\anaconda_navigator\api\conda_api.py at line 1364 from data = yaml.load(f) to data = yaml.safeload(f)

Great! Thanks, this worked for me after weeks of trying other solutions.

grgsolymosi commented 4 years ago

If somebody didn't find the code line above, for me under win10 the line was:

data = yaml.full_load(f)

in the line 1391 on the same path as mentioned above.

Changing it to:

data = yaml.safe_load(f)

solved my issue as well.

eljitall commented 4 years ago

Try first the followings lines, if it doesn't work then try the above code line. conda update conda conda update anaconda-navigator

faberfred commented 4 years ago

I have got the same problem, but no solution is working for me! I use ubuntu 18.04 and the latest anaconda. conda version : 4.8.3 conda-build version : 3.18.11 python version : 3.7.6.final.0

I changed yaml.load(f) to yaml.safe_load(f) within two files:

~/anaconda3/lib/python3.7/site-packages/navigator_updater/api/conda_api.py and ~/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/conda_api.py without any result.

Does anybody have any ideas? Thanks for your help

eljitall commented 4 years ago

@faberfred try to update the navigator by typing: ~$ conda update conda ~$ conda update anaconda-navigator

eljitall commented 4 years ago

conda update conda conda update anaconda-navigator

faberfred commented 4 years ago

@ eljitall: thanks for your quick reply. I did that already but it didn't work! It is really strange: it works perfectly if I am offline. But it always freezes if I start anaconda navigator if my computer is online.

ariesandes commented 4 years ago

Well. I am a mac user. Anaconda and other Coda commands hangs too until ... I found my security network monitor (Little Snitch, Hands Off!, etc) block conda and anaconda. Solution: I stop those monitor and Anaconda-Navigator and Coda works fine! Then I stop Anaconda, run those monitor again, run again Anaconda-Navigator and set up the permissions on my security network monitor (for python 2.7 or 3.7). From then all is ok. No more hangs.

mattterry13 commented 4 years ago

I've tried all suggestions on this thread and still having an issue. Like @faberfred it loads fine if I'm offline. Does anyone have any other suggestions? I'll have to stop using Anaconda if I have to disconnect from the internet every time I want to launch the navigator.

haoruilee commented 4 years ago

Try this in anaconda prompt: ··· chcp 65001 anaconda-navigator ··· This finishes my problem.