• Devuan project
  • devuan-project
  • Issues
  • #54

Closed
Open
Opened 2016-05-15T21:05Z by Gianluca @greseth

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.

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • hellekin @hellekin Added Package label · 2016-05-27T17:11Z

    Added Package label

  • hellekin
    hellekin @hellekin · 2016-05-27T17:16Z

    Your log says:fatal error: Python.h: No such file or directoryDid 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.

  • eagle1
    eagle1 @Zamagni · 2016-06-11T22:35Z

    Got the same trouble, I've found a workaround to properly install certbot.

    At first I've tried to installvirtualenvbootstrapand python (along withpython2.7-dev) but I've got the same trouble as @greseth

    So I've just copied/etc/devuan_versionto/etc/debian_versionand 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 2016-06-11T22:36Z
  • hellekin
    hellekin @hellekin · 2016-06-14T17:59Z

    BTW, is this package using/root/.local/share/letsencrypt/bin/python2.7instead of system python?