Support for Azure


I want to use the Python Azure SDK on my dietpi-raspi.
Unfortunately the installation via pip install --pre azure like mentioned in fails with the following error:

arm-linux-gnueabihf-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 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
compilation terminated.
error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1

Command “/usr/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-build-lDPMUg/cffi/’;f=getattr(tokenize, ‘open’, open)(file);’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-9S9Z7y-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-lDPMUg/cffi/

Any chance to get this working?


Looks like a missing dev package is needed. Try installing both dev and binary packages:

apt-get install libffi libffi-dev

Then re-run the pip installer.