5

I have installed Anaconda on my Desktop running Ubuntu 18 Mate LTS. The output of

python --version

is

Python 3.6.5 :: Anaconda, Inc.

First of all, when I try to launch Anaconda Navigator using

anaconda-navigator 

the application gets stuck at Loading applications stage. I have to eventually kill this using CTRL+C/CTRL+Z. The anaconda navigator never launches.

Following this, I tried

conda update anaconda-navigator

and

conda update conda

None of these commands work.

I tried to look for the solution online and at one site, I was guided to use the following set of commands

source ~/anaconda*/bin/activate root
anaconda-navigator

Even this did not work. It was showing some SSL Verification Failed message. The message was as follows: -

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/noarch/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))',),)

Following this, I googled this problem and at one of the sites, the developers suggested me to use

conda config --set ssl_verify False

I did this. Then afterwards, I do not see the error message (obviously because ssl verify has been turned off). But then, instead of any error message, I keep on getting the following report at my terminal (no matter what conda command I use). The report looks something like this: -

environment variables:
                 CIO_TEST=<not set>
        CONDA_BACKUP_HOST=x86_64-conda_cos6-linux-gnu
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/home/upendra/anaconda3/bin/conda
             CONDA_PREFIX=/home/upendra/anaconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/home/upendra/anaconda3/bin/python
               CONDA_ROOT=/home/upendra/anaconda3
              CONDA_SHLVL=1
                     PATH=/home/upendra/anaconda3/bin:/home/upendra/anaconda3/bin:/usr/local/sbi
                          n:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/g
                          ames:/snap/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>
         UBUNTU_MENUPROXY=<set>
            XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
         XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
                ftp_proxy=<set>
               http_proxy=<set>
              https_proxy=<set>

     active environment : base
    active env location : /home/upendra/anaconda3
            shell level : 1
       user config file : /home/upendra/.condarc
 populated config files : /home/upendra/.condarc
          conda version : 4.5.9
    conda-build version : 3.10.5
         python version : 3.6.5.final.0
       base environment : /home/upendra/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /home/upendra/anaconda3/pkgs
                          /home/upendra/.conda/pkgs
       envs directories : /home/upendra/anaconda3/envs
                          /home/upendra/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.9 requests/2.18.4 CPython/3.6.5 Linux/4.15.0-30-generic ubuntu/18.04 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

The interesting this is that the first time when I launched anaconda-navigator after installing it, navigator window did get launched. After that, I shut down my system after working and from then onward anaconda-navigator window would not launch. I am also not sure if this is due to internet connection or anaconda installation/configuration.

Any suggestions ?

Amal K
  • 4,359
  • 2
  • 22
  • 44
Upendra01
  • 344
  • 3
  • 5
  • 15
  • Refer to solution given by limkin092 at https://github.com/ContinuumIO/anaconda-issues/issues/10461. It worked for me. – Palak Gupta Apr 16 '19 at 22:58

2 Answers2

0

There was an issue with proxy settings. It was solved. However there are some issues with anaconda navigator software. Its elements such as Spyder or ipython often fail to communicate with proxy properly particularly when there are credentials involved. As a result downloading datasets can often get involved.

I used this trick. I installed anaconda and configured the environment. Then I closed anaconda navigator window, launched Spyder/ipython from terminal and things always work for me.in case Spyder gives segmentation fault upon launch, simple downgrade the mkl package. The above tricks work like magic for me.

Upendra01
  • 344
  • 3
  • 5
  • 15
  • Actually I have found the answer. When where is an HTTP error, proxy setting need be set and then the network needs to be reset once. After reset, the new proxy setting start to operate. – Upendra01 Dec 31 '18 at 04:57
  • And when the anaconda application does.not launch, the key is to install pyqt5 package using pip. It works all the time – Upendra01 Dec 31 '18 at 04:57
  • Segmentation fault in Spyder covered above is highly appreciated. – Upendra01 Dec 31 '18 at 04:59
  • The above problem can occur multiple times depending upon the packages you install. However, the above tricks work like wonders – Upendra01 Dec 31 '18 at 05:00
-3

It seems like you're facing a couple of issues with Anaconda on your Ubuntu system. Let's try to address them step by step:

1 - Anaconda Navigator Stuck at "Loading applications" stage: This issue might be related to a network problem. The Anaconda Navigator requires internet access to load the applications list. Since you mentioned that SSL verification was failing earlier, it's possible that there are still some network-related issues. To troubleshoot this, make sure you have a stable internet connection and that there are no proxy settings interfering with Anaconda's access to the internet.

You can also try updating Anaconda Navigator using the following command:

conda update anaconda-navigator

1 - SSL Verification Error: As you mentioned, you tried disabling SSL verification with 'conda config --set ssl_verify False'. While this may have resolved the SSL error, it's not a recommended solution as it compromises the security of your connection. To fix the SSL verification issue properly, you should ensure that your SSL certificates are up-to-date and correctly installed. You can try running the following command to refresh the SSL certificates:

conda install -c conda-forge certifi

This will install the latest 'certifi' package from the conda-forge channel, which contains up-to-date SSL certificates.

1 - Anaconda Environment Variables Display: The output you provided is not an error message but rather the environment variables set by the Anaconda installation. It's a normal output showing the current state of your Anaconda environment.

2 - Anaconda Navigator Previously Working: If Anaconda Navigator was working fine earlier but stopped working after a system shutdown, there might be some lingering processes or configuration issues. You can try the following:

  • Check for any background processes related to Anaconda Navigator and kill them if they exist.

  • Restart your system to ensure a clean state.

  • After the restart, open a new terminal and try running 'anaconda-navigator' again to see if it launches successfully. If the issues persist, it might be helpful to uninstall Anaconda completely, remove any configuration files, and then reinstall Anaconda. To uninstall Anaconda, you can run the following commands:

    conda install anaconda-clean

    anaconda-clean --yes

Afterward, reinstall Anaconda using the installer for your system.

If you still encounter problems, you might consider reaching out to the Anaconda support or community forums for further assistance, as they may have encountered and resolved similar issues before.

Remember to always use proper SSL verification settings for secure connections and update your system regularly to maintain a stable and secure environment.

  • 2
    Hi, Armin Alborzi! Your eight answers over the few days appear likely to be entirely or partially written by AI (e.g., ChatGPT). Please be aware that [posting AI-generated content is not allowed here](//meta.stackoverflow.com/q/421831). If you used an AI tool to assist with any answer, I would encourage you to delete it. We do hope you'll stick around and continue to be a valuable part of our community by posting *your own* quality content. Thanks! – NotTheDr01ds Jul 23 '23 at 16:39
  • 2
    **Readers should review this answer carefully and critically, as AI-generated information often contains fundamental errors and misinformation.** If you observe quality issues and/or have reason to believe that this answer was generated by AI, please leave feedback accordingly. – NotTheDr01ds Jul 23 '23 at 16:39