Reported this to Openssl and was advised issue is with Python.
https://github.com/openssl/openssl/issues/1190
On Debian 8.4, Linux ip-10-1-1-99 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux
Since upgrading from 1.0.1k-3+deb8u5 -> 1.0.1t-1+deb8u2 I cannot install pip cryptography 1.0.1 *
apt-get install --force-yes libssl-dev=1.0.1t-1+deb8u2 libssl1.0.0=1.0.1t-1+deb8u2 openssl=1.0.1t-1+deb8u2 build-essential python-pip python-dev libffi-dev
pip install cryptography
apt-get install --force-yes libssl-dev=1.0.1k-3+deb8u5 libssl1.0.0=1.0.1k-3+deb8u5 openssl=1.0.1k-3+deb8u5
pip install cryptography
Force installing the previous version of openssl resolves the issue. *
It is easily reproduced with the packages / pip install cryptography.
I've debugged:
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 59: ordinal not in range(128)
And determined the encoding of my provisioner or shell has no effect and has always been set UTF8.
It looks like this may be the cause (caveat, I know zero C):
build/temp.linux-x86_64-2.7/_openssl.c:2096:15: error: âSSLv2_methodâ redeclared as different kind of symbol
building '_openssl' extension
creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
build/temp.linux-x86_64-2.7/_openssl.c:2096:15: error: âSSLv2_methodâ redeclared as different kind of symbol
SSL_METHOD* (*SSLv2_method)(void) = NULL;
^
In file included from build/temp.linux-x86_64-2.7/_openssl.c:523:0:
/usr/include/openssl/ssl.h:2021:19: note: previous declaration of âSSLv2_methodâ was here
const SSL_METHOD *SSLv2_method(void); /* SSLv2 */
^
build/temp.linux-x86_64-2.7/_openssl.c:2097:15: error: âSSLv2_client_methodâ redeclared as different kind of symbol
SSL_METHOD* (*SSLv2_client_method)(void) = NULL;
^
In file included from build/temp.linux-x86_64-2.7/_openssl.c:523:0:
/usr/include/openssl/ssl.h:2023:19: note: previous declaration of âSSLv2_client_methodâ was here
const SSL_METHOD *SSLv2_client_method(void); /* SSLv2 */
^
build/temp.linux-x86_64-2.7/_openssl.c:2098:15: error: âSSLv2_server_methodâ redeclared as different kind of symbol
SSL_METHOD* (*SSLv2_server_method)(void) = NULL;
^
In file included from build/temp.linux-x86_64-2.7/_openssl.c:523:0:
/usr/include/openssl/ssl.h:2022:19: note: previous declaration of âSSLv2_server_methodâ was here
const SSL_METHOD *SSLv2_server_method(void); /* SSLv2 */
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of cryptography
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-13wIIt/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1C0XrA-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-13wIIt/cryptography
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 248, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 59: ordinal not in range(128)
Experiencing this same issue. Totally get that it's open source and such, but poking it as I'm curious how soon a fix would be available.
Is the traceback you provided from cryptography 1.4? I don't see any of the SSLv2 lines it indicates in our present source code.
As a data point, I just upgraded our jessie builder to 1.0.1t-1+deb8u2 and did pip install cryptography in a virtualenv without any issues.
@alex, The issue initially occurred in cryptography==1.0.1
It also occurs in the latest pip installable version (1.4)
I probably pasted you 1.0.1
@reaperhulk So you wernt able to without a vritualenv but were with? Could you try without a vritualenv?
@russmac Can you provide a traceback from 1.4?
I was able to install 1.4 on a fresh build today without producing the issue. Was able to reproduce it for cryptography==1.0.1 only.
Unfortunately it's somewhat expected that older cryptography's will not work with newer OpenSSLs. Unless anyone can reproduce this issue with 1.4, I don't think there's anything to do here?
Time for me to report issue to the project using it. I hope they like Debian.
I get error with crytpography under Ubuntu 16.10, I paste the trace:
Installing collected packages: lxml, cryptography, pyOpenSSL, Scrapy
Found existing installation: lxml 3.6.1
Uninstalling lxml-3.6.1:
Successfully uninstalled lxml-3.6.1
Running setup.py install for lxml ... done
Found existing installation: cryptography 1.5
Uninstalling cryptography-1.5:
Successfully uninstalled cryptography-1.5
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-I7LDar/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 /tmp/pip-uWvLo2-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/x509.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
creating build/lib.linux-x86_64-2.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/evp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/osrandom_engine.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/pem.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ecdh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/opensslv.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ssl.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509_vfy.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/pkcs7.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/bignum.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/aes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/pkcs12.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ecdsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/rand.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509v3.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/engine.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/objects.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/bio.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/err.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509name.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/nid.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/crypto.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/conf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/cms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/secitem.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/common_digest.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/seckey.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/cf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/common_hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/sectransform.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/secimport.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/seckeychain.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found
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'
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/src
copying src/cryptography/hazmat/primitives/src/constant_time.c -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/src
copying src/cryptography/hazmat/primitives/src/constant_time.h -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/src
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
copying src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
copying src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_590da19fxffc7b1ce.c -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
copying src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.c -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
running build_ext
building '_Cryptography_cffi_4ee21876x41fb9936' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/cryptography
creating build/temp.linux-x86_64-2.7/src/cryptography/hazmat
creating build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings
creating build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-lMBuS3/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c -o build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.o
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:476:6: error: conflicting types for âBIO_new_mem_bufâ
BIO *BIO_new_mem_buf(void *, int);
^~~~~~~~~~~~~~~
In file included from /usr/include/openssl/asn1.h:65:0,
from src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:197:
/usr/include/openssl/bio.h:692:6: note: previous declaration of âBIO_new_mem_bufâ was here
BIO *BIO_new_mem_buf(const void *buf, int len);
^~~~~~~~~~~~~~~
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:1935:15: error: âSSLv2_methodâ redeclared as different kind of symbol
SSL_METHOD* (*SSLv2_method)(void) = NULL;
^~~~~~~~~~~~
In file included from src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:294:0:
/usr/include/openssl/ssl.h:2349:19: note: previous declaration of âSSLv2_methodâ was here
const SSL_METHOD *SSLv2_method(void); /* SSLv2 */
^~~~~~~~~~~~
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:1936:15: error: âSSLv2_client_methodâ redeclared as different kind of symbol
SSL_METHOD* (*SSLv2_client_method)(void) = NULL;
^~~~~~~~~~~~~~~~~~~
In file included from src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:294:0:
/usr/include/openssl/ssl.h:2351:19: note: previous declaration of âSSLv2_client_methodâ was here
const SSL_METHOD *SSLv2_client_method(void); /* SSLv2 */
^~~~~~~~~~~~~~~~~~~
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:1937:15: error: âSSLv2_server_methodâ redeclared as different kind of symbol
SSL_METHOD* (*SSLv2_server_method)(void) = NULL;
^~~~~~~~~~~~~~~~~~~
In file included from src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:294:0:
/usr/include/openssl/ssl.h:2350:19: note: previous declaration of âSSLv2_server_methodâ was here
const SSL_METHOD *SSLv2_server_method(void); /* SSLv2 */
^~~~~~~~~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of cryptography
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-I7LDar/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 /tmp/pip-uWvLo2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-I7LDar/cryptography/
What version of cryptography are you trying to install? That error msg
implies you're attempting to install a version substantially older than the
latest (1.7), but I'm not sure.
On December 21, 2016 at 11:25:29 PM, Ăngel GuzmĂĄn Maeso (
[email protected]) wrote:
I get error with crytpography under Ubuntu 16.10, I paste the trace:
Installing collected packages: lxml, cryptography, pyOpenSSL, Scrapy
Found existing installation: lxml 3.6.1
Uninstalling lxml-3.6.1:
Successfully uninstalled lxml-3.6.1
Running setup.py install for lxml ... done
Found existing installation: cryptography 1.5
Uninstalling cryptography-1.5:
Successfully uninstalled cryptography-1.5
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python -u -c "import
setuptools, tokenize;__file__='/tmp/pip-build-I7LDar/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 /tmp/pip-uWvLo2-record/install-record.txt
--single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/utils.py ->
build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__about__.py ->
build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/x509.py ->
build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/exceptions.py ->
build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/fernet.py ->
build/lib.linux-x86_64-2.7/cryptography
creating build/lib.linux-x86_64-2.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/interfaces.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/multibackend.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/utils.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
creating
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying
src/cryptography/hazmat/primitives/asymmetric/padding.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying
src/cryptography/hazmat/primitives/asymmetric/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
creating
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying
src/cryptography/hazmat/primitives/twofactor/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
creating
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying
src/cryptography/hazmat/primitives/ciphers/algorithms.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
creating
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying
src/cryptography/hazmat/backends/commoncrypto/hashes.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying
src/cryptography/hazmat/backends/commoncrypto/ciphers.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hmac.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying
src/cryptography/hazmat/backends/commoncrypto/backend.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying
src/cryptography/hazmat/backends/commoncrypto/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/evp.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying
src/cryptography/hazmat/bindings/openssl/osrandom_engine.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/pem.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ecdh.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/opensslv.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/rsa.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ssl.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509_vfy.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/pkcs7.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/dsa.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/hmac.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/bignum.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ec.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/aes.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/pkcs12.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/ecdsa.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/rand.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509v3.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/engine.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/objects.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/bio.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/err.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/x509name.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/nid.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/crypto.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/conf.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/cmac.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/dh.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/asn1.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/cms.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
creating
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/secitem.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/common_digest.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.py
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/seckey.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/cf.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/binding.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/common_hmac.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/sectransform.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/__init__.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/secimport.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying
src/cryptography/hazmat/bindings/commoncrypto/seckeychain.py ->
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to
src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found
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'
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/src
copying src/cryptography/hazmat/primitives/src/constant_time.c
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/src
copying src/cryptography/hazmat/primitives/src/constant_time.h
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/src
creating
build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
copying
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
copying
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_590da19fxffc7b1ce.c
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
copying
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.c
-> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__
running build_ext
building '_Cryptography_cffi_4ee21876x41fb9936' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/cryptography
creating build/temp.linux-x86_64-2.7/src/cryptography/hazmat
creating build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings
creating
build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fno-strict-aliasing -Wdate-time
-D_FORTIFY_SOURCE=2 -g
-fdebug-prefix-map=/build/python2.7-lMBuS3/python2.7-2.7.12=.
-fstack-protector-strong -Wformat -Werror=format-security -fPIC
-I/usr/include/python2.7 -c
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c
-o build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.o
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:476:6:
error: conflicting types for âBIO_new_mem_bufâ
BIO BIO_new_mem_buf(void *, int);
^~~~~
In file included from /usr/include/openssl/asn1.h:65:0,
from
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:197:
/usr/include/openssl/bio.h:692:6: note: previous declaration
of âBIO_new_mem_bufâ was here
BIO *BIO_new_mem_buf(const void *buf, int len);
^~~~~
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:1935:15:
error: âSSLv2_methodâ redeclared as different kind of symbol
SSL_METHOD (SSLv2_method)(void) = NULL;
^~~~
In file included from
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:294:0:
/usr/include/openssl/ssl.h:2349:19: note: previous declaration
of âSSLv2_methodâ was here
const SSL_METHOD *SSLv2_method(void); / SSLv2 /
^~~~
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:1936:15:
error: âSSLv2_client_methodâ redeclared as different kind of symbol
SSL_METHOD (SSLv2_client_method)(void) = NULL;
^~~~~ SSLv2 /
In file included from
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:294:0:
/usr/include/openssl/ssl.h:2351:19: note: previous declaration
of âSSLv2_client_methodâ was here
const SSL_METHOD *SSLv2_client_method(void); /
^~~~~
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:1937:15:
error: âSSLv2_server_methodâ redeclared as different kind of symbol
SSL_METHOD (SSLv2_server_method)(void) = NULL;
^~~~~ SSLv2 */
In file included from
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ee21876x41fb9936.c:294:0:
/usr/include/openssl/ssl.h:2350:19: note: previous declaration
of âSSLv2_server_methodâ was here
const SSL_METHOD *SSLv2_server_method(void); /
^~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of cryptography
Command "/usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-I7LDar/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 /tmp/pip-uWvLo2-record/install-record.txt
--single-version-externally-managed --compile" failed with error code
1 in /tmp/pip-build-I7LDar/cryptography/
â
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pyca/cryptography/issues/2973#issuecomment-268721691,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ214nukZbT0sZpQOYdKRzJcjo4965dks5rKgnIgaJpZM4IybJc
.
Most helpful comment
Unfortunately it's somewhat expected that older cryptography's will not work with newer OpenSSLs. Unless anyone can reproduce this issue with 1.4, I don't think there's anything to do here?