crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 274 forks source link

Crossbar install gives "fatal error: 'openssl/opensslv.h' file not found" #940

Closed ghost closed 7 years ago

ghost commented 7 years ago

Following the instructions here http://crossbar.io/docs/Installation-on-Mac-OS-X/ and taking the pypy option, but I am unable to install due to this openssl error. Please help! Trying to get autobahn up and running.

Running: macOS 10.12.1 Python 2.7.10

ERROR LOG:

(pypy-venv) BUENOSAIRES:pypy-venv pat$ pip install crossbar Collecting crossbar Using cached crossbar-16.10.1-py2.py3-none-any.whl Requirement already satisfied: click>=6.6 in ./site-packages (from crossbar) Requirement already satisfied: setuptools>=28.3.0 in ./site-packages (from crossbar) Requirement already satisfied: zope.interface>=4.3.2 in ./site-packages (from crossbar) Requirement already satisfied: Twisted>=16.5.0 in ./site-packages (from crossbar) Requirement already satisfied: autobahn>=0.16.1 in ./site-packages (from crossbar) Requirement already satisfied: netaddr>=0.7.18 in ./site-packages (from crossbar) Requirement already satisfied: PyTrie>=0.2 in ./site-packages (from crossbar) Requirement already satisfied: Jinja2>=2.8 in ./site-packages (from crossbar) Requirement already satisfied: mistune>=0.7.3 in ./site-packages (from crossbar) Requirement already satisfied: Pygments>=2.1.3 in ./site-packages (from crossbar) Requirement already satisfied: PyYAML>=3.12 in ./site-packages (from crossbar) Requirement already satisfied: shutilwhich>=1.1.0 in ./site-packages (from crossbar) Requirement already satisfied: sdnotify>=0.3.1 in ./site-packages (from crossbar) Requirement already satisfied: psutil>=4.3.1 in ./site-packages (from crossbar) Requirement already satisfied: lmdb>=0.89 in ./site-packages (from crossbar) Requirement already satisfied: u-msgpack-python>=2.2 in ./site-packages (from crossbar) Requirement already satisfied: cbor>=1.0.0 in ./site-packages (from crossbar) Requirement already satisfied: py-ubjson>=0.8.5 in ./site-packages (from crossbar) Collecting cryptography>=1.5.2 (from crossbar) Downloading cryptography-1.7.1.tar.gz (420kB) 100% |████████████████████████████████| 430kB 1.7MB/s Collecting pyOpenSSL>=16.1.0 (from crossbar) Using cached pyOpenSSL-16.2.0-py2.py3-none-any.whl Requirement already satisfied: pyasn1>=0.1.9 in ./site-packages (from crossbar) Collecting pyasn1-modules>=0.0.8 (from crossbar) Using cached pyasn1_modules-0.0.8-py2.py3-none-any.whl Collecting service-identity>=16.0.0 (from crossbar) Using cached service_identity-16.0.0-py2.py3-none-any.whl Collecting PyNaCl>=1.0.1 (from crossbar) Collecting treq>=15.1.0 (from crossbar) Using cached treq-15.1.0-py2.py3-none-any.whl Collecting setproctitle>=1.1.10 (from crossbar) Collecting pyqrcode>=1.2.1 (from crossbar) Collecting watchdog>=0.8.3 (from crossbar) Collecting bitstring>=3.1.5 (from crossbar) Collecting attrs>=16.2.0 (from crossbar) Using cached attrs-16.3.0-py2.py3-none-any.whl Requirement already satisfied: incremental>=16.10.1 in ./site-packages (from crossbar) Requirement already satisfied: constantly>=15.1.0 in ./site-packages (from crossbar) Requirement already satisfied: six>=1.10.0 in ./site-packages (from autobahn>=0.16.1->crossbar) Requirement already satisfied: txaio>=2.5.2 in ./site-packages (from autobahn>=0.16.1->crossbar) Requirement already satisfied: MarkupSafe in ./site-packages (from Jinja2>=2.8->crossbar) Requirement already satisfied: cffi>=0.8 in /usr/local/Cellar/pypy/5.6.0/libexec/lib_pypy (from lmdb>=0.89->crossbar) Requirement already satisfied: idna>=2.0 in ./site-packages (from cryptography>=1.5.2->crossbar) Requirement already satisfied: enum34 in ./site-packages (from cryptography>=1.5.2->crossbar) Requirement already satisfied: ipaddress in ./site-packages (from cryptography>=1.5.2->crossbar) Collecting requests>=2.1.0 (from treq>=15.1.0->crossbar) Using cached requests-2.12.3-py2.py3-none-any.whl Collecting argh>=0.24.1 (from watchdog>=0.8.3->crossbar) Using cached argh-0.26.2-py2.py3-none-any.whl Collecting pathtools>=0.1.1 (from watchdog>=0.8.3->crossbar) Building wheels for collected packages: cryptography Running setup.py bdist_wheel for cryptography ... error Complete output from command /Users/pat/pypy-venv/bin/pypy -u -c "import setuptools, tokenize;file='/private/var/folders/gb/73tg2cm50ds0m7crdd967jd80000gn/T/pip-build-2OwgR7/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /var/folders/gb/73tg2cm50ds0m7crdd967jd80000gn/T/tmp9pgD9Tpip-wheel- --python-tag pp256: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.12-x86_64-2.7 creating build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/about.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/exceptions.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/fernet.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat copying src/cryptography/hazmat/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat creating build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/base.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/extensions.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/general_name.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/name.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/oid.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings copying src/cryptography/hazmat/bindings/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/padding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto copying src/cryptography/hazmat/bindings/commoncrypto/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/interfaces copying src/cryptography/hazmat/primitives/interfaces/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/interfaces creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor running egg_info writing src/cryptography.egg-info/PKG-INFO writing dependency_links to src/cryptography.egg-info/dependency_links.txt writing entry points to src/cryptography.egg-info/entry_points.txt writing requirements to src/cryptography.egg-info/requires.txt writing top-level names to src/cryptography.egg-info/top_level.txt reading manifest file 'src/cryptography.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs/_build' warning: no previously-included files matching '*' found under directory 'vectors' writing manifest file 'src/cryptography.egg-info/SOURCES.txt' running build_ext generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_commoncrypto.c' creating build/temp.macosx-10.12-x86_64-2.7 generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_padding.c' generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_constant_time.c' generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_openssl.c' building '_openssl' extension creating build/temp.macosx-10.12-x86_64-2.7/build creating build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7 cc -arch x86_64 -O2 -fPIC -Wimplicit -I/Users/pat/pypy-venv/include -c build/temp.macosx-10.12-x86_64-2.7/_openssl.c -o build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7/_openssl.o build/temp.macosx-10.12-x86_64-2.7/_openssl.c:433:10: fatal error: 'openssl/opensslv.h' file not found

include <openssl/opensslv.h>

       ^

1 error generated. error: command 'cc' failed with exit status 1


Failed building wheel for cryptography Running setup.py clean for cryptography Failed to build cryptography Installing collected packages: cryptography, pyOpenSSL, pyasn1-modules, attrs, service-identity, PyNaCl, requests, treq, setproctitle, pyqrcode, argh, pathtools, watchdog, bitstring, crossbar Running setup.py install for cryptography ... error Complete output from command /Users/pat/pypy-venv/bin/pypy -u -c "import setuptools, tokenize;file='/private/var/folders/gb/73tg2cm50ds0m7crdd967jd80000gn/T/pip-build-2OwgR7/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/gb/73tg2cm50ds0m7crdd967jd80000gn/T/pip-dVsnUH-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/pat/pypy-venv/include/site/python2.7/cryptography: running install running build running build_py creating build creating build/lib.macosx-10.12-x86_64-2.7 creating build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/about.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/exceptions.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/fernet.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography copying src/cryptography/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat copying src/cryptography/hazmat/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat creating build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/base.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/extensions.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/general_name.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/name.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 copying src/cryptography/x509/oid.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/x509 creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings copying src/cryptography/hazmat/bindings/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/padding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/commoncrypto creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/backends/openssl creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto copying src/cryptography/hazmat/bindings/commoncrypto/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/bindings/openssl creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/asymmetric creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/ciphers creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/interfaces copying src/cryptography/hazmat/primitives/interfaces/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/interfaces creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/kdf creating build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/init.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.macosx-10.12-x86_64-2.7/cryptography/hazmat/primitives/twofactor running egg_info writing src/cryptography.egg-info/PKG-INFO writing dependency_links to src/cryptography.egg-info/dependency_links.txt writing entry points to src/cryptography.egg-info/entry_points.txt writing requirements to src/cryptography.egg-info/requires.txt writing top-level names to src/cryptography.egg-info/top_level.txt reading manifest file 'src/cryptography.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs/_build' warning: no previously-included files matching '*' found under directory 'vectors' writing manifest file 'src/cryptography.egg-info/SOURCES.txt' running build_ext generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_commoncrypto.c' creating build/temp.macosx-10.12-x86_64-2.7 generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_padding.c' generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_constant_time.c' generating cffi module 'build/temp.macosx-10.12-x86_64-2.7/_openssl.c' building '_openssl' extension creating build/temp.macosx-10.12-x86_64-2.7/build creating build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7 cc -arch x86_64 -O2 -fPIC -Wimplicit -I/Users/pat/pypy-venv/include -c build/temp.macosx-10.12-x86_64-2.7/_openssl.c -o build/temp.macosx-10.12-x86_64-2.7/build/temp.macosx-10.12-x86_64-2.7/_openssl.o build/temp.macosx-10.12-x86_64-2.7/_openssl.c:433:10: fatal error: 'openssl/opensslv.h' file not found

include <openssl/opensslv.h>

         ^
1 error generated.
error: command 'cc' failed with exit status 1

----------------------------------------

Command "/Users/pat/pypy-venv/bin/pypy -u -c "import setuptools, tokenize;file='/private/var/folders/gb/73tg2cm50ds0m7crdd967jd80000gn/T/pip-build-2OwgR7/cryptography/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/gb/73tg2cm50ds0m7crdd967jd80000gn/T/pip-dVsnUH-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/pat/pypy-venv/include/site/python2.7/cryptography" failed with error code 1 in /private/var/folders/gb/73tg2cm50ds0m7crdd967jd80000gn/T/pip-build-2OwgR7/cryptography/ (pypy-venv) BUENOSAIRES:pypy-venv pat$

meejah commented 7 years ago

This looks like a cryptography install problem. @patjnolan can you confirm by running "pip install cryptography" and see ifyou get a similar error, please?

hawkowl commented 7 years ago

Apple no longer ships OpenSSL headers with macOS (which is good, because they ship OpenSSL 0.9.8 that can't even do TLS v1.2). To compile Cryptography, you will need to get an OpenSSL from Homebrew and compile it against that. If you run into problems that, the pyca/cryptography devs might be able to help. If you use CPython, there's a prebuilt wheel available, too.

ghost commented 7 years ago

Thank you everyone for your input. I was able to resolve the issue with this command:

env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography