conda update error #4254

Open
andersrmr opened this Issue Jan 10, 2017 · 10 comments

Projects

None yet

3 participants

@andersrmr

issued command: conda update pandas

Fetching package metadata ...An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:

https://github.com/conda/conda/issues                                                                      

Current conda install:

           platform : win-64                                                                               
      conda version : 4.2.14                                                                               
   conda is private : False                                                                                
  conda-env version : 4.2.14                                                                               
conda-build version : 1.18.2                                                                               
     python version : 2.7.12.final.0                                                                       
   requests version : 2.12.4                                                                               
   root environment : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2  (writable)               
default environment : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2                           
   envs directories : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\envs                      
      package cache : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\pkgs                      
       channel URLs : https://repo.continuum.io/pkgs/free/win-64                                           
                      https://repo.continuum.io/pkgs/free/noarch                                           
                      https://repo.continuum.io/pkgs/pro/win-64                                            
                      https://repo.continuum.io/pkgs/pro/noarch                                            
                      https://repo.continuum.io/pkgs/msys2/win-64                                          
                      https://repo.continuum.io/pkgs/msys2/noarch                                          
        config file : None                                                                                 
       offline mode : False                                                                                

$ C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\Scripts\conda-script.py update pandas

Traceback (most recent call last):                                                                         
  File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\exceptions.py", 

line 479, in conda_exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\cli\main.py", li
ne 158, in _main
exit_code = args.func(args, p)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\cli\main_update.
py", line 65, in execute
install(args, parser, 'update')
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\cli\install.py",
line 238, in install
prefix=prefix)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\api.py", line 24
, in get_index
index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\fetch.py", line
295, in fetch_index
for url in urls]
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\fetch.py", line
75, in func
res = f(*args, **kwargs)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\conda\fetch.py", line
117, in fetch_repodata
timeout=(6.1, 60))
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\sessions.py",
line 501, in get
return self.request('GET', url, **kwargs)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\sessions.py",
line 488, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\sessions.py",
line 609, in send
r = adapter.send(request, **kwargs)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\adapters.py",
line 423, in send
timeout=timeout
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\packages\urll
ib3\connectionpool.py", line 594, in urlopen
chunked=chunked)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\packages\urll
ib3\connectionpool.py", line 350, in _make_request
self._validate_conn(conn)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\packages\urll
ib3\connectionpool.py", line 835, in _validate_conn
conn.connect()
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\packages\urll
ib3\connection.py", line 330, in connect
cert = self.sock.getpeercert()
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\packages\urll
ib3\contrib\pyopenssl.py", line 324, in getpeercert
'subjectAltName': get_subj_alt_name(x509)
File "C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\packages\urll
ib3\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'

@kippvs
kippvs commented Jan 10, 2017

+1
I get the same with conda update bokeh.

              platform : win-64
         conda version : 4.2.14
      conda is private : False
     conda-env version : 4.2.14
   conda-build version : not installed
        python version : 2.7.11.final.0
      requests version : 2.12.4
      root environment : C:\Anaconda  (writable)
   default environment : C:\Anaconda
      envs directories : C:\Anaconda\envs
         package cache : C:\Anaconda\pkgs
          channel URLs : https://repo.continuum.io/pkgs/free/win-64
                         https://repo.continuum.io/pkgs/free/noarch
                         https://repo.continuum.io/pkgs/pro/win-64
                         https://repo.continuum.io/pkgs/pro/noarch
                         https://repo.continuum.io/pkgs/msys2/win-64
                         https://repo.continuum.io/pkgs/msys2/noarch
           config file : None
          offline mode : False

$ C:\Anaconda\Scripts\conda-script.py update bokeh

   Traceback (most recent call last):
     File "C:\Anaconda\lib\site-packages\conda\exceptions.py", line 479, in conda_exception_handler
       return_value = func(*args, **kwargs)
     File "C:\Anaconda\lib\site-packages\conda\cli\main.py", line 158, in _main
       exit_code = args.func(args, p)
     File "C:\Anaconda\lib\site-packages\conda\cli\main_update.py", line 65, in execute
       install(args, parser, 'update')
     File "C:\Anaconda\lib\site-packages\conda\cli\install.py", line 238, in install
       prefix=prefix)
     File "C:\Anaconda\lib\site-packages\conda\api.py", line 24, in get_index
       index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
     File "C:\Anaconda\lib\site-packages\conda\fetch.py", line 300, in fetch_index
       repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
     File "C:\Anaconda\lib\site-packages\concurrent\futures\_base.py", line 405, in result
       return self.__get_result()
     File "C:\Anaconda\lib\site-packages\concurrent\futures\thread.py", line 55, in run
       result = self.fn(*self.args, **self.kwargs)
     File "C:\Anaconda\lib\site-packages\conda\fetch.py", line 75, in func
       res = f(*args, **kwargs)
     File "C:\Anaconda\lib\site-packages\conda\fetch.py", line 117, in fetch_repodata
       timeout=(6.1, 60))
     File "C:\Anaconda\lib\site-packages\requests\sessions.py", line 501, in get
       return self.request('GET', url, **kwargs)
     File "C:\Anaconda\lib\site-packages\requests\sessions.py", line 488, in request
       resp = self.send(prep, **send_kwargs)
     File "C:\Anaconda\lib\site-packages\requests\sessions.py", line 609, in send
       r = adapter.send(request, **kwargs)
     File "C:\Anaconda\lib\site-packages\requests\adapters.py", line 423, in send
       timeout=timeout
     File "C:\Anaconda\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 594, in urlopen
       chunked=chunked)
     File "C:\Anaconda\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 350, in _make_request
       self._validate_conn(conn)
     File "C:\Anaconda\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 835, in _validate_conn
       conn.connect()
     File "C:\Anaconda\lib\site-packages\requests\packages\urllib3\connection.py", line 330, in connect
       cert = self.sock.getpeercert()
     File "C:\Anaconda\lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py", line 324, in getpeercert
       'subjectAltName': get_subj_alt_name(x509)
     File "C:\Anaconda\lib\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'
@kalefranz
Member

Can you give me the output of conda list ssl and conda info?

@kalefranz
Member

oh sorry, conda info is there. Just need conda list ssl.

@kippvs
kippvs commented Jan 10, 2017

@kalefranz, here you are. Thanks.

# packages in environment at C:\Anaconda:
#
openssl                   1.0.2j                    vc9_0  [vc9]
pyopenssl                 0.15.1                   py27_1
ssl_match_hostname        3.4.0.2                  py27_0
@kalefranz
Member

Can you try

conda config --set ssl_verify false
conda install pyopenssl=16.2
conda config --remove-key ssl_verify

and then try again with whatever command was creating your stack trace?

@kippvs
kippvs commented Jan 10, 2017

Yes, this does work. I appreciate the workaround. Was able to update both bokeh and pandas (haven't tried others).

@kalefranz
Member

Cool. Glad that worked. You should be good to go now. We're going to get this fixed for everybody today.

@kalefranz
Member

@ilanschnell, let's definitely set requirements for conda's release today to

- requests >=2.12.4
- pyopenssl >=16.2
@andersrmr

output of conda list ssl:

packages in environment at C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2:

openssl 1.0.2h vc9_0 [vc9]
pyopenssl 0.15.1 py27_1
ssl_match_hostname 3.4.0.2 py27_1

@andersrmr

output of conda info:

Current conda install:

           platform : win-64                                                                  
      conda version : 4.2.14                                                                  
   conda is private : False                                                                   
  conda-env version : 4.2.14                                                                  
conda-build version : 1.18.2                                                                  
     python version : 2.7.12.final.0                                                          
   requests version : 2.12.4                                                                  
   root environment : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2  (writable)  
default environment : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2              
   envs directories : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\envs         
      package cache : C:\Users\RichardAnderson\AppData\Local\Continuum\Anaconda2\pkgs         
       channel URLs : https://repo.continuum.io/pkgs/free/win-64                              
                      https://repo.continuum.io/pkgs/free/noarch                              
                      https://repo.continuum.io/pkgs/pro/win-64                               
                      https://repo.continuum.io/pkgs/pro/noarch                               
                      https://repo.continuum.io/pkgs/msys2/win-64                             
                      https://repo.continuum.io/pkgs/msys2/noarch                             
        config file : None                                                                    
       offline mode : False                                                                   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment