Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching package metadata ...An unexpected error has occurred. #3935

Closed
lentesta opened this issue Nov 22, 2016 · 4 comments
Closed

Fetching package metadata ...An unexpected error has occurred. #3935

lentesta opened this issue Nov 22, 2016 · 4 comments
Labels
locked [bot] locked due to inactivity

Comments

@lentesta
Copy link

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 : linux-64
      conda version : 4.2.12
   conda is private : False
  conda-env version : 4.2.12
conda-build version : 1.19.0
     python version : 3.5.2.final.0
   requests version : 2.12.0
   root environment : /home/len/anaconda3  (writable)
default environment : /home/len/anaconda3
   envs directories : /home/len/anaconda3/envs
      package cache : /home/len/anaconda3/pkgs
       channel URLs : https://repo.continuum.io/pkgs/free/linux-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/pro/linux-64
                      https://repo.continuum.io/pkgs/pro/noarch
        config file : None
       offline mode : False

$ /home/len/anaconda3/bin/conda install mkl mkl-service

Traceback (most recent call last):
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/exceptions.py", line 479, in conda_exception_handler
    return_value = func(*args, **kwargs)
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/cli/main.py", line 145, in _main
    exit_code = args.func(args, p)
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/cli/main_install.py", line 80, in execute
    install(args, parser, 'install')
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/cli/install.py", line 238, in install
    prefix=prefix)
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/api.py", line 24, in get_index
    index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 310, in fetch_index
    repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 310, in <listcomp>
    repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
  File "/home/len/anaconda3/lib/python3.5/concurrent/futures/_base.py", line 405, in result
    return self.__get_result()
  File "/home/len/anaconda3/lib/python3.5/concurrent/futures/_base.py", line 357, in __get_result
    raise self._exception
  File "/home/len/anaconda3/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 74, in func
    res = f(*args, **kwargs)
  File "/home/len/anaconda3/lib/python3.5/site-packages/conda/fetch.py", line 116, in fetch_repodata
    timeout=(3.05, 60))
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/sessions.py", line 501, in get
    return self.request('GET', url, **kwargs)
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen
    chunked=chunked)
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 350, in _make_request
    self._validate_conn(conn)
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 835, in _validate_conn
    conn.connect()
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 330, in connect
    cert = self.sock.getpeercert()
  File "/home/len/anaconda3/lib/python3.5/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 324, in getpeercert
    'subjectAltName': get_subj_alt_name(x509)
  File "/home/len/anaconda3/lib/python3.5/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
Copy link
Contributor

kalefranz commented Nov 22, 2016

duplicate of #3929

pyopenssl and cryptography are out of sync.

CONDA_VERIFY_SSL=false conda update pyopenssl

should fix your problem

Edit:

CONDA_VERIFY_SSL=false is WRONG

Please use

CONDA_SSL_VERIFY=false conda update pyopenssl

I feel bad. Sincere apologies for the confusion and frustration.

@lentesta
Copy link
Author

#3929 Did not work for me. I ended up re-installing an earlier version of
Conda and xgboost.

On Tue, Nov 22, 2016 at 5:22 PM, Kale Franz notifications@github.com
wrote:

duplicate of #3929 #3929

pyopenssl and cryptography are out of sync.

CONDA_VERIFY_SSL=false conda update pyopenssl

should fix your problem


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3935 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALA41BW-s94LknYHKA6YvIHE74hBRplks5rA2sdgaJpZM4K5uwX
.

@kalefranz
Copy link
Contributor

kalefranz commented Nov 30, 2016

Please use

CONDA_SSL_VERIFY=false conda update pyopenssl

@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 10, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

2 participants