python - Why did conda and pip just stop working? 'CompiledFFI' object has no attribute 'def_extern' -
i installed/upgraded following packages on system (mac osx 10.7.5, using python 2.7.11).
package | build ---------------------------|----------------- enum34-1.1.2 | py27_0 55 kb idna-2.0 | py27_0 123 kb ipaddress-1.0.14 | py27_0 27 kb pyasn1-0.1.9 | py27_0 54 kb pycparser-2.14 | py27_0 147 kb cffi-1.2.1 | py27_0 167 kb cryptography-1.0.2 | py27_0 370 kb pyopenssl-0.14 | py27_0 122 kb ndg-httpsclient-0.3.3 | py27_0 30 kb ------------------------------------------------------------ total: 1.1 mb
afterwards, following error when trying call pip or anaconda:
'compiledffi' object has no attribute 'def_extern'
what's going on , how fix this?
here's full error message:
$ conda traceback (most recent call last): file "/users/user/miniconda/bin/conda", line 5, in <module> sys.exit(main()) file "/users/user/miniconda/lib/python2.7/site-packages/conda/cli/main.py", line 118, in main conda.cli import main_search file "/users/user/miniconda/lib/python2.7/site-packages/conda/cli/main_search.py", line 12, in <module> conda.misc import make_icon_url file "/users/user/miniconda/lib/python2.7/site-packages/conda/misc.py", line 19, in <module> conda.api import get_index file "/users/user/miniconda/lib/python2.7/site-packages/conda/api.py", line 10, in <module> conda.fetch import fetch_index file "/users/user/miniconda/lib/python2.7/site-packages/conda/fetch.py", line 24, in <module> conda.connection import condasession, unparse_url, retries file "/users/user/miniconda/lib/python2.7/site-packages/conda/connection.py", line 24, in <module> import requests file "/users/user/miniconda/lib/python2.7/site-packages/requests/__init__.py", line 53, in <module> .packages.urllib3.contrib import pyopenssl file "/users/user/miniconda/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 54, in <module> import openssl.ssl file "/users/user/miniconda/lib/python2.7/site-packages/openssl/__init__.py", line 8, in <module> openssl import rand, crypto, ssl file "/users/user/miniconda/lib/python2.7/site-packages/openssl/rand.py", line 11, in <module> openssl._util import ( file "/users/user/miniconda/lib/python2.7/site-packages/openssl/_util.py", line 6, in <module> cryptography.hazmat.bindings.openssl.binding import binding file "/users/user/miniconda/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 68, in <module> error=-1) file "/users/user/miniconda/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 57, in wrapper ffi.def_extern(name=name, **kwargs)(func) attributeerror: 'compiledffi' object has no attribute 'def_extern'
i had error too, i've resolved upgrading cffi so:
pip install --upgrade cffi
Comments
Post a Comment