python - Symbol not found: _BIO_new_CMS -
i new mac , don't understand why scrapy doesn't seem work more. suspect openssl not valid in el capitan.
i tried:
pip install cryptography pip install pyopenssl brew install openssl
and still error below. there way can fix this?
$ python python 2.7.10 (v2.7.10:15c95b7d81dc, may 23 2015, 09:33:12) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import openssl traceback (most recent call last): file "<stdin>", line 1, in <module> file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/openssl/__init__.py", line 8, in <module> openssl import rand, crypto, ssl file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/openssl/rand.py", line 11, in <module> openssl._util import ( file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/openssl/_util.py", line 3, in <module> cryptography.hazmat.bindings.openssl.binding import binding file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 13, in <module> cryptography.hazmat.bindings._openssl import ffi, lib importerror: dlopen(/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so, 2): symbol not found: _bio_new_cms referenced from: /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so expected in: flat namespace in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so >>>
i solve problem following command:
ldflags="-l/usr/local/opt/openssl/lib" pip install cryptography --no-use-wheel
refer if homebrew openssl linked, cryptography builds unusable wheel
Comments
Post a Comment