pip version too old for letsencrypt/certbot scripts.
Installing Python packages...
Had a problem while installing Python packages:
[...]
Found existing installation: argparse 1.2.1
Not uninstalling argparse at /usr/lib/python2.7, outside environment /root/.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 'error'
Complete output from command /root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8PnNk1/cffi/setup.py';exec(compile(getattr( tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-YjZWCC-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/ site/python2.7/cffi:
[...]
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 -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8PnNk1/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-YjZWCC-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-8PnNk1/cffi
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.
-
Your log says:
fatal error: Python.h: No such file or directory
Did you installpython2.7-dev
? Maybe that's an issue with certbot scripts?Regarding
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.
Repeating from the above issue:
You might want to try Debian's Stretch version of pip as there's no backport yet for jessie.
That said I don't think it will solve your issue.
-
Got the same trouble, I've found a workaround to properly install certbot.
At first I've tried to install
virtualenv
bootstrap
and python (along withpython2.7-dev
) but I've got the same trouble as @gresethSo I've just copied
/etc/devuan_version
to/etc/debian_version
and certboot properly bootstrapped.He also installed this bunch of packages, that probably are the missing pieces:
augeas-lenses dialog libaugeas0 libffi-dev libpython-dev libssl-dev python-dev python-virtualenv zlib1g-dev
Now certbot runs fine.
Edited by eagle1 -
BTW, is this package using
/root/.local/share/letsencrypt/bin/python2.7
instead of system python?