Skip to content

Docker image fails to build

tried with latest soledad:develop:

--- scripts/docker ‹develop› » make
...
    copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlcipher/test
    copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlcipher/test
    copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlcipher/test
    creating build/lib.linux-x86_64-2.7/pysqlcipher/test/py25
    copying lib/test/py25/__init__.py -> build/lib.linux-x86_64-2.7/pysqlcipher/test/py25
    copying lib/test/py25/py25tests.py -> build/lib.linux-x86_64-2.7/pysqlcipher/test/py25
    running build_ext
    building 'pysqlcipher._sqlite' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/src
    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 -DMODULE_NAME="pysqlcipher.dbapi2" -I/usr/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o -I/usr/include/sqlcipher/
    In file included from src/module.c:24:0:
    src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory
     #include "sqlite3.h"
                         ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/builds/leap/soledad/testing/.tox/py27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3fu4_S/pysqlcipher/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kbsc6D-record/install-record.txt --single-version-externally-managed --compile --install-headers /builds/leap/soledad/testing/.tox/py27/include/site/python2.7/pysqlcipher" failed with error code 1 in /tmp/pip-build-3fu4_S/pysqlcipher/

ERROR: could not install deps [coverage, pytest, pytest-cov, pytest-twisted, mock, testscenarios, setuptools-trial, pdbpp, couchdb, requests, -e../common, -e../client, -e../server]; v = InvocationError('/builds/leap/soledad/testing/.tox/py27/bin/pip install coverage pytest pytest-cov pytest-twisted mock testscenarios setuptools-trial pdbpp couchdb requests -e../common -e../client -e../server (see /builds/leap/soledad/testing/.tox/py27/log/py27-1.log)', 1)
___________________________________ summary ____________________________________
ERROR:   py27: could not install deps [coverage, pytest, pytest-cov, pytest-twisted, mock, testscenarios, setuptools-trial, pdbpp, couchdb, requests, -e../common, -e../client, -e../server]; v = InvocationError('/builds/leap/soledad/testing/.tox/py27/bin/pip install coverage pytest pytest-cov pytest-twisted mock testscenarios setuptools-trial pdbpp couchdb requests -e../common -e../client -e../server (see /builds/leap/soledad/testing/.tox/py27/log/py27-1.log)', 1)
The command '/bin/sh -c cd /builds/leap/soledad/testing && tox -v -r --notest' returned a non-zero code: 1
Makefile:33: recipe for target 'soledad-image' failed
make: *** [soledad-image] Error 1

(from redmine: created on 2016-10-04)