Cryptography python error running letsencrypt-auto


#1

My certificates expire in a few days and I haven’t had any luck updating them with letsencrypt-auto or certbot-auto. As fas as I can tell, everything is up to date but I get a “Running setup.py install for cryptography: finished with status ‘error’” every time. I’ve run sudo with the -H flag like the output suggests but no change. I’ve looked at a bunch of posts both here and other sites and none of the suggestions seem to have helped. Anyone have any ideas?

My operating system is (include version): Ubuntu 16.04.
I ran this command: sudo ./letsencrypt-auto renew

Output highlights:

Bootstrapping dependencies for Debian-based OSes…
Hit:1 http://apt-longview.linode.com xenial InRelease
Hit:2 http://mirrors.linode.com/ubuntu xenial InRelease
Hit:3 http://mirrors.linode.com/ubuntu xenial-updates InRelease
Hit:4 http://mirrors.linode.com/ubuntu xenial-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
augeas-lenses is already the newest version (1.4.0-0ubuntu1).
ca-certificates is already the newest version (20160104ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
libaugeas0 is already the newest version (1.4.0-0ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
dialog is already the newest version (1.3-20160209-1).
python-virtualenv is already the newest version (15.0.1+ds-3).
virtualenv is already the newest version (15.0.1+ds-3).
libssl-dev is already the newest version (1.0.2j-0+deb.sury.org~xenial+1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Creating virtual environment…
Installing Python packages…
The directory ‘/home/colby/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/colby/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Had a problem while installing Python packages.
Collecting argparse==1.4.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 6))
Downloading argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 12))
Downloading pycparser-2.14.tar.gz (223kB)
Collecting cffi==1.4.2 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 15))
Downloading cffi-1.4.2.tar.gz (365kB)
Collecting ConfigArgParse==0.10.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 32))
Downloading ConfigArgParse-0.10.0.tar.gz
Collecting configobj==5.0.6 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 34))
Downloading configobj-5.0.6.tar.gz
Collecting cryptography==1.3.4 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 36))
Downloading cryptography-1.3.4.tar.gz (384kB)
Collecting enum34==1.1.2 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 59))
Downloading enum34-1.1.2.tar.gz (46kB)
Collecting funcsigs==0.4 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 62))
Downloading funcsigs-0.4-py2.py3-none-any.whl
Collecting idna==2.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 65))
Downloading idna-2.0-py2.py3-none-any.whl (61kB)
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 68))
Downloading ipaddress-1.0.16-py27-none-any.whl
Collecting linecache2==1.0.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 71))
Downloading linecache2-1.0.0-py2.py3-none-any.whl
Collecting ndg-httpsclient==0.4.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 74))
Downloading ndg_httpsclient-0.4.0.tar.gz
Collecting ordereddict==1.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 76))
Downloading ordereddict-1.1.tar.gz
Collecting parsedatetime==2.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 78))
Downloading parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 81))
Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
Collecting pyasn1==0.1.9 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 84))
Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Collecting pyopenssl==16.0.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 96))
Downloading pyOpenSSL-16.0.0-py2.py3-none-any.whl (45kB)
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 99))
Downloading pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 108))
Downloading pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 111))
Downloading python-augeas-0.5.0.tar.gz (90kB)
Collecting python2-pythondialog==3.3.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 113))
Downloading python2-pythondialog-3.3.0.tar.bz2 (1.8MB)
Collecting pytz==2015.7 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 116))
Downloading pytz-2015.7-py2.py3-none-any.whl (476kB)
Collecting requests==2.9.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 130))
Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
Collecting six==1.10.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 133))
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 136))
Downloading traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 139))
Downloading unittest2-1.1.0-py2.py3-none-any.whl (96kB)
Collecting zope.component==4.2.2 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 142))
Downloading zope.component-4.2.2.tar.gz (546kB)
Collecting zope.event==4.1.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 144))
Downloading zope.event-4.1.0.tar.gz (476kB)
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 146))
Downloading zope.interface-4.1.3.tar.gz (141kB)
Collecting mock==1.0.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 164))
Downloading mock-1.0.1.zip (861kB)
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 167))
Downloading letsencrypt-0.7.0-py2-none-any.whl
Collecting acme==0.9.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 173))
Downloading acme-0.9.1-py2.py3-none-any.whl (94kB)
Collecting certbot==0.9.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 176))
Downloading certbot-0.9.1-py2-none-any.whl (225kB)
Collecting certbot-apache==0.9.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 179))
Downloading certbot_apache-0.9.1-py2-none-any.whl (123kB)
Collecting certbot-nginx==0.9.1 (from -r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 182))
Downloading certbot_nginx-0.9.1-py2-none-any.whl (58kB)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /home/colby/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography==1.3.4->-r /tmp/tmp.vMfGnHJ5yi/letsencrypt-auto-requirements.txt (line 36))
Installing collected packages: argparse, pycparser, cffi, ConfigArgParse, six, configobj, idna, pyasn1, enum34, ipaddress, cryptography, funcsigs, linecache2, pyopenssl, ndg-httpsclient, ordereddict, parsedatetime, pbr, pyparsing, pytz, pyRFC3339, python-augeas, python2-pythondialog, requests, traceback2, unittest2, zope.interface, zope.event, zope.component, mock, acme, certbot, letsencrypt, certbot-apache, certbot-nginx
Found existing installation: argparse 1.2.1
Not uninstalling argparse at /usr/lib/python2.7, outside environment /home/colby/.local/share/letsencrypt
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done’
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'done’
Running setup.py install for ConfigArgParse: started
Running setup.py install for ConfigArgParse: finished with status ‘done’
Running setup.py install for configobj: started
Running setup.py install for configobj: finished with status ‘done’
Running setup.py install for enum34: started
Running setup.py install for enum34: finished with status ‘done’
Running setup.py install for cryptography: started
Running setup.py install for cryptography: finished with status ‘error’
Complete output from command /home/colby/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;file=’/tmp/pip-build-STzmW5/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’
’, ‘
’), file, ‘exec’))" install --record /tmp/pip-nBBkFY-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/colby/.local/share/letsencrypt/include/site/python2.7/cryptography:
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/fernet.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/about.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/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/init.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
creating 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/interfaces.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/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
creating 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/keywrap.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/serialization.py -> 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/constant_time.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/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
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/decode_asn1.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/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.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/x509.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/rsa.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
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/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
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/init.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/backend.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
creating 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/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.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/init.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
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.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/totp.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/interfaces
copying src/cryptography/hazmat/primitives/interfaces/init.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
creating 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/algorithms.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/x963kdf.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
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
creating 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/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.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
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/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
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’
running build_ext
generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c’
creating build/temp.linux-x86_64-2.7
generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c’
generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c’
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 -Wdate-time -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:592:5: error: conflicting types for ‘i2d_ASN1_OBJECT’
int i2d_ASN1_OBJECT(ASN1_OBJECT *, unsigned char **);
^
In file included from build/temp.linux-x86_64-2.7/_openssl.c:431:0:
/usr/local/include/openssl/asn1.h:529:5: note: previous declaration of ‘i2d_ASN1_OBJECT’ was here
int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp);
^

[…]

build/temp.linux-x86_64-2.7/_openssl.c:73167:5: error: initializer element is not constant
sizeof(X509_STORE_CTX), offsetof(struct _cffi_align__X509_STORE_CTX, y), 126, 10 },
^
build/temp.linux-x86_64-2.7/_openssl.c:73167:5: note: (near initialization for ‘_cffi_struct_unions[133].size’)
In file included from /usr/include/sched.h:28:0,
from /usr/include/pthread.h:23,
from /usr/local/include/openssl/crypto.h:406,
from /usr/local/include/openssl/bio.h:20,
from /usr/local/include/openssl/asn1.h:16,
from build/temp.linux-x86_64-2.7/_openssl.c:431:
build/temp.linux-x86_64-2.7/_openssl.c:73167:29: error: initializer element is not constant
sizeof(X509_STORE_CTX), offsetof(struct _cffi_align__X509_STORE_CTX, y), 126, 10 },
^
build/temp.linux-x86_64-2.7/_openssl.c:73167:29: note: (near initialization for ‘_cffi_struct_unions[133].alignment’)
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1


Command “/home/colby/.local/share/letsencrypt/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-STzmW5/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’
’, ‘
’), file, ‘exec’))” install --record /tmp/pip-nBBkFY-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/colby/.local/share/letsencrypt/include/site/python2.7/cryptography” failed with error code 1 in /tmp/pip-build-STzmW5/cryptography
You are using pip version 8.0.3, however version 8.1.2 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

Full output: https://justpaste.it/z6y1


#2

Solved the issue. I had another local copy of openssl installed which was conflicting with the system copy. Removed it and everything worked.


#3

Hi @colby I’m running into the same issue. I found that I had openssl v1.1.0-a-dev or something installed at /usr/local/bin, so I’ve since removed it. Which version of openssl are you running on? Since removing the dev version, I’m now using v1.0.1f (installed through the regular apt-get install process, on Ubuntu 14.04.5


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.