I just had the same issue on a completly fresh install of Ubuntu 14.04, so I ran this:
pip install --upgrade --force-reinstall python-glanceclient
... and got this at the end:
... creating build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_70441dc9x8be47966.c -o build/temp.linux-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_70441dc9x8be47966.o
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_70441dc9x8be47966.c:194:25: fatal error: openssl/aes.h: No such file or directory
#include <openssl/aes.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YrIH3Q-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cryptography Storing debug log for failure in /home/epettbj/.pip/pip.log
So I installed libssl-dev:
apt-get install libssl-dev
And ran the above reinstall command again and it worked.
I just had the same issue on a completly fresh install of Ubuntu 14.04, so I ran this:
pip install --upgrade --force-reinstall python-glanceclient
... and got this at the end:
... linux-x86_ 64-2.7/ src/cryptograph y/hazmat/ bindings/ __pycache_ _
creating build/temp.
x86_ 64-linux- gnu-gcc -pthread -fno-strict- aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/ include/ python2. 7 -c src/cryptograph y/hazmat/ bindings/ __pycache_ _/_Cryptography _cffi_70441dc9x 8be47966. c -o build/temp. linux-x86_ 64-2.7/ src/cryptograph y/hazmat/ bindings/ __pycache_ _/_Cryptography _cffi_70441dc9x 8be47966. o
src/ cryptography/ hazmat/ bindings/ __pycache_ _/_Cryptography _cffi_70441dc9x 8be47966. c:194:25: fatal error: openssl/aes.h: No such file or directory
#include <openssl/aes.h>
compilation terminated.
error: command 'x86_64- linux-gnu- gcc' failed with exit status 1
--- ------- ------- ------- ------- ------- -- __file_ _='/tmp/ pip_build_ root/cryptograp hy/setup. py';exec( compile( getattr( tokenize, 'open', open)(_ _file__ ).read( ).replace( '\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip- YrIH3Q- record/ install- record. txt --single- version- externally- managed --compile failed with error code 1 in /tmp/pip_ build_root/ cryptography .pip/pip. log
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;
Storing debug log for failure in /home/epettbj/
So I installed libssl-dev:
apt-get install libssl-dev
And ran the above reinstall command again and it worked.