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

Conda upgrade fails on macOS Yosemite #3934

Closed
tunguz opened this issue Nov 22, 2016 · 8 comments
Closed

Conda upgrade fails on macOS Yosemite #3934

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

Comments

@tunguz
Copy link

tunguz commented Nov 22, 2016

Here is the error that I get:

Current conda install:

           platform : osx-64
      conda version : 4.2.11
   conda is private : False
  conda-env version : 4.2.11
conda-build version : 1.14.1
     python version : 2.7.12.final.0
   requests version : 2.12.1
   root environment : /Users/tunguz/anaconda  (writable)
default environment : /Users/tunguz/anaconda
   envs directories : /Users/tunguz/anaconda/envs
      package cache : /Users/tunguz/anaconda/pkgs
       channel URLs : https://repo.continuum.io/pkgs/free/osx-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/pro/osx-64
                      https://repo.continuum.io/pkgs/pro/noarch
        config file : None
       offline mode : False

$ /Users/tunguz/anaconda/bin/conda upgrade conda

Traceback (most recent call last):
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 479, in conda_exception_handler
    return_value = func(*args, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 145, in _main
    exit_code = args.func(args, p)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/cli/main_update.py", line 65, in execute
    install(args, parser, 'update')
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 238, in install
    prefix=prefix)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/api.py", line 24, in get_index
    index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 305, in fetch_index
    for url in urls]
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 74, in func
    res = f(*args, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 116, in fetch_repodata
    timeout=(3.05, 60))
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 501, in get
    return self.request('GET', url, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen
    chunked=chunked)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 350, in _make_request
    self._validate_conn(conn)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 835, in _validate_conn
    conn.connect()
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 330, in connect
    cert = self.sock.getpeercert()
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 324, in getpeercert
    'subjectAltName': get_subj_alt_name(x509)
  File "/Users/tunguz/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'
@azotova
Copy link

azotova commented Nov 22, 2016

I had a very similar issue and was able to fix it following these instructions http://stackoverflow.com/questions/40748838/problems-with-updating-anaconda-and-installing-new-packages (issue #3929)

@kalefranz
Copy link
Contributor

kalefranz commented Nov 22, 2016

Duplicate of #3929 and #3935. Honestly not sure where this came from all the sudden. We definitely need to limit dependencies somewhere.

In general 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.

@tunguz
Copy link
Author

tunguz commented Nov 24, 2016

Sorry, but that did not solve the issue. Please re-open this issue. Here is the error message that I got:

$ /Users/tunguz/anaconda/bin/conda update pyopenssl

Traceback (most recent call last):
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 479, in conda_exception_handler
    return_value = func(*args, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 145, in _main
    exit_code = args.func(args, p)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/cli/main_update.py", line 65, in execute
    install(args, parser, 'update')
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 238, in install
    prefix=prefix)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/api.py", line 24, in get_index
    index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 305, in fetch_index
    for url in urls]
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 74, in func
    res = f(*args, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 116, in fetch_repodata
    timeout=(3.05, 60))
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 501, in get
    return self.request('GET', url, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen
    chunked=chunked)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 350, in _make_request
    self._validate_conn(conn)
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 835, in _validate_conn
    conn.connect()
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 330, in connect
    cert = self.sock.getpeercert()
  File "/Users/tunguz/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 324, in getpeercert
    'subjectAltName': get_subj_alt_name(x509)
  File "/Users/tunguz/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'

@kalefranz
Copy link
Contributor

@tunguz What do you have for conda list?

@kalefranz kalefranz reopened this Nov 24, 2016
@tunguz
Copy link
Author

tunguz commented Nov 24, 2016

Here is the output:

packages in environment at /Users/tunguz/anaconda:

_license 1.1 py27_0 None://None/
abstract-rendering 0.5.1 np19py27_0 None://None/
accelerate 1.13.0 np19py27_p0
alabaster 0.7.3 py27_0 None://None/
anaconda 2.3.0 np19py27_0 None://None/
appnope 0.1.0
appscript 1.0.1 py27_0 None://None/
argcomplete 0.8.9 py27_0 None://None/
astropy 1.0.3 np19py27_0 None://None/
babel 1.3 py27_0 None://None/
bayesian-optimization 0.1.0
bcolz 0.9.0 np19py27_0 None://None/
beautiful-soup 4.3.2 py27_0 None://None/
binstar 0.11.0 py27_0 None://None/
bitarray 0.8.1 py27_0 None://None/
blaze-core 0.8.0 np19py27_0 None://None/
blz 0.6.2 np19py27_1 None://None/
bokeh 0.9.0 np19py27_0 None://None/
boto 2.38.0 py27_0 None://None/
bottleneck 1.0.0 np19py27_0 None://None/
brew 0.1.3
cdecimal 2.3 py27_0 None://None/
certifi 14.05.14 py27_0 None://None/
cffi 1.1.0 py27_0 None://None/
clyent 0.3.4 py27_0 None://None/
colorama 0.3.3 py27_0 None://None/
conda 4.2.11 py27_0
conda-build 1.14.1 py27_0 None://None/
conda-env 2.6.0 0
configobj 5.0.6 py27_0 None://None/
cryptography 0.9.1 py27_0 None://None/
cssselect 0.9.1
cudatoolkit 7.0 1
curl 7.43.0 0 None://None/
cv2 1.0
cython 0.22.1 py27_0 None://None/
cytoolz 0.7.3 py27_0 None://None/
datashape 0.4.5 np19py27_0 None://None/
decorator 3.4.2 py27_0 None://None/
Django 1.9
django 1.8.4 py27_0
docutils 0.12 py27_0 None://None/
dynd-python 0.6.5 np19py27_0 None://None/
enum34 1.0.4 py27_0 None://None/
fastcache 1.0.2 py27_0 None://None/
feedfinder2 0.0.1
feedparser 5.1.3
flask 0.10.1 py27_1 None://None/
freetype 2.5.5 0
funcsigs 1.0.2
funcsigs 0.4 py27_0 None://None/
future 0.15.2
geograpy 0.3.7
gevent 1.0.1 py27_0 None://None/
gevent-websocket 0.9.3 py27_0 None://None/
gnureadline 6.3.3
google-api-python-client 1.5.3
greenlet 0.4.7 py27_0 None://None/
grin 1.2.1 py27_1 None://None/
h2o 3.8.3.2
h5py 2.5.0 np19py27_3 None://None/
hdf5 1.8.15.1 1 None://None/
hep-ml 0.3.0
httplib2 0.9.2
idna 2.0 py27_0 None://None/
image 1.4.3
imageio 1.6
ipaddress 1.0.7 py27_0 None://None/
ipykernel 4.3.1
ipython 4.1.2
ipython 3.2.0 py27_0 None://None/
ipython-genutils 0.1.0
ipython-notebook 3.2.0 py27_0 None://None/
ipython-qtconsole 3.2.0 py27_0 None://None/
ipywidgets 4.1.1
itsdangerous 0.24 py27_0 None://None/
jbig 2.1 0
jdcal 1.0 py27_0 None://None/
jedi 0.8.1 py27_0 None://None/
jellyfish 0.5.6
jieba 0.35
jinja2 2.7.3 py27_1 None://None/
jpeg 8d 1 None://None/
jsonschema 2.4.0 py27_0 None://None/
jupyter 1.0.0
jupyter-client 4.2.2
jupyter-console 4.1.1
jupyter-core 4.1.0
Keras 1.0.7
launcher 1.0.0 3 None://None/
libdynd 0.6.5 0 None://None/
libpng 1.6.17 0 None://None/
libsodium 0.4.5 0 None://None/
libtiff 4.0.6 1
libxml2 2.9.2 0 None://None/
libxslt 1.1.28 2 None://None/
llvmlite 0.6.0 py27_0
lxml 3.3.5
lxml 3.4.4 py27_0 None://None/
markupsafe 0.23 py27_0 None://None/
matplotlib 1.4.3 np19py27_2 None://None/
mistune 0.5.1 py27_1 None://None/
mkl 11.3.1 0
mkl-rt 11.1 p0
mkl-service 1.0.0 py27_p1
mklfft 2.0 np19py27_p0
ml-metrics 0.1.4
mock 2.0.0
mock 1.0.1 py27_0 None://None/
moviepy 0.2.2.11
multipledispatch 0.4.7 py27_0 None://None/
mysql-connector-python 2.0.3 py27_0
MySQL-python 1.2.5
nbconvert 4.1.0
nbformat 4.0.1
networkx 1.9.1 py27_0 None://None/
newspaper 0.0.9.8
nltk 2.0.5
nltk 3.0.3 np19py27_0 None://None/
node-webkit 0.10.1 0 None://None/
nose 1.3.7 py27_0 None://None/
notebook 4.1.0
numba 0.20.0 np19py27_0
numbapro 0.20.0 np19py27_p1
numbapro_cudalib 0.2 0
numpy 1.11.1
numpy 1.11.2
numpy 1.10.4 py27_0
oauth2client 3.0.0
oauthlib 1.0.3
odo 0.3.2 np19py27_0 None://None/
opencv 2.4.8 np17py27_2
openpyxl 1.8.5 py27_0 None://None/
openssl 1.0.2g 0
pandas 0.18.0
pandas 0.18.0 np110py27_0
path.py 8.1.2
patsy 0.3.0 np19py27_0 None://None/
pbr 1.10.0
pep8 1.6.2 py27_0 None://None/
pexpect 4.0.1
pickleshare 0.6
pillow 3.0.0 py27_1
Pillow 2.5.1
pip 8.1.1 py27_0
ply 3.6 py27_0 None://None/
protobuf 3.0.0
psutil 2.2.1 py27_0 None://None/
ptyprocess 0.5.1
ptyprocess 0.4 py27_0 None://None/
py 1.4.27 py27_0 None://None/
pyasn1 0.1.9
pyasn1 0.1.7 py27_0 None://None/
pyasn1-modules 0.0.8
pyaudio 0.2.7 py27_0 None://None/
pycosat 0.6.1 py27_0 None://None/
pycountry 1.20
pycparser 2.14 py27_0 None://None/
pycrypto 2.6.1 py27_0 None://None/
pycurl 7.19.5.1 py27_2 None://None/
pyflakes 0.9.2 py27_0 None://None/
pygments 2.0.2 py27_0 None://None/
pyopenssl 0.15.1 py27_1 None://None/
pyparsing 2.0.3 py27_0 None://None/
pyqt 4.11.3 py27_0 None://None/
pytables 3.2.0 np19py27_0 None://None/
pytest 2.7.1 py27_0 None://None/
python 2.7.12 1
python-dateutil 2.4.0
python-dateutil 2.4.2 py27_0 None://None/
python.app 1.2 py27_4 None://None/
pytz 2015.4 py27_0 None://None/
pytz 2016.2
pyyaml 3.11 py27_1 None://None/
pyzmq 14.7.0 py27_0 None://None/
qt 4.8.6 3 None://None/
qtconsole 4.2.0
readline 6.2 2 None://None/
redis 2.6.9 0 None://None/
redis-py 2.10.3 py27_0 None://None/
requests 2.12.1
requests 2.9.1 py27_0
requests-oauthlib 0.6.0
rope 0.9.4 py27_1 None://None/
rsa 3.4.2
ruamel_yaml 0.11.14 py27_0
runipy 0.1.3 py27_0 None://None/
scikit-image 0.11.3 np19py27_0 None://None/
scikit-learn 0.17.1 np110py27_0
scipy 0.18.0
scipy 0.17.0 np110py27_0
seaborn 0.7.1
setuptools 28.8.0
setuptools 20.3 py27_0
simplegeneric 0.8.1
simplejson 3.8.2
sip 4.16.5 py27_0 None://None/
six 1.9.0 py27_0 None://None/
six 1.10.0
sklearn 0.0
snowballstemmer 1.2.0 py27_0 None://None/
sockjs-tornado 1.0.1 py27_0 None://None/
sphinx 1.3.1 py27_0 None://None/
sphinx_rtd_theme 0.1.7 py27_0 None://None/
spyder 2.3.5.2 py27_0 None://None/
spyder-app 2.3.5.2 py27_0 None://None/
sqlalchemy 1.0.5 py27_0 None://None/
sqlite 3.13.0 0
ssl_match_hostname 3.4.0.2 py27_0 None://None/
statsmodels 0.6.1 np19py27_0 None://None/
sympy 0.7.6 py27_0 None://None/
tabulate 0.7.5
tensorflow 0.11.0
terminado 0.5 py27_0 None://None/
Theano 0.8.2
tk 8.5.18 0 None://None/
tldextract 1.5.1
toolz 0.7.2 py27_0 None://None/
tornado 4.2 py27_0 None://None/
tqdm 4.9.0
traitlets 4.2.1
tweepy 3.5.0
twython 3.4.0
ujson 1.33 py27_0 None://None/
unicodecsv 0.9.4 py27_0 None://None/
uritemplate 0.6
werkzeug 0.10.4 py27_0 None://None/
wheel 0.29.0 py27_0
wikipedia 1.4.0
xgboost 0.4a13
xlrd 0.9.3 py27_0 None://None/
xlsxwriter 0.7.3 py27_0 None://None/
xlwings 0.3.5 py27_0 None://None/
xlwt 1.0.0 py27_0 None://None/
xz 5.0.5 0
yaml 0.1.6 0 None://None/
zeromq 4.0.5 0 None://None/
zlib 1.2.8 0 None://None/

@kalefranz
Copy link
Contributor

kalefranz commented Nov 24, 2016 via email

@tunguz
Copy link
Author

tunguz commented Nov 24, 2016

All right, that seems to have fixed it! Thanks a lot, and thanks for all your attention and effort. BTW, the content of my 'conda info' has been mentioned at the very start of this issue thread.

Yes, I've been vaguely aware of some conflicts with pip/conda from before. Unfortunately, there are a lot of packages that for whatever reason I am only able to install/upgrade using either pip or conda, and hence I've been going back and forth with the two.

@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

3 participants