Anaconda Python update fails

Symptoms

You ran conda update anaconda, but it failed with a lengthy error message that ended similar to this:

    File "/usr/local/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 324, in getpeercert
       'subjectAltName': get_subj_alt_name(x509)
     File "/usr/local/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 171, in get_subj_alt_name
       ext = cert.extensions.get_extension_for_class(
   AttributeError: 'Extensions' object has no attribute 'get_extension_for_class'

Environment

Anaconda Python on Linux

Cause

Your Anaconda Python cryptography package is out of date.

Resolution

  1. Run the command CONDA_SSL_VERIFY=false conda update pyopenssl
  2. Now conda update anaconda should run successfully

 

Details

Article ID: 1652
Created
Wed 5/27/20 8:36 AM
Modified
Thu 10/1/20 10:28 AM