20:48:55 Started by user Simon Pruvost 20:48:55 Running as SYSTEM 20:48:55 Building in workspace /var/lib/jenkins/jobs/first/workspace 20:48:55 The recommended git tool is: NONE 20:48:55 using credential 8a11502e-f80d-4742-a451-704b40f19292 20:48:55 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/first/workspace/.git # timeout=10 20:48:55 Fetching changes from the remote Git repository 20:48:55 > git config remote.origin.url https://framagit.org/pruvosim/store-prices-watchdog.git # timeout=10 20:48:55 Fetching upstream changes from https://framagit.org/pruvosim/store-prices-watchdog.git 20:48:55 > git --version # timeout=10 20:48:55 > git --version # 'git version 2.39.5' 20:48:55 using GIT_ASKPASS to set credentials 20:48:55 > git fetch --tags --force --progress -- https://framagit.org/pruvosim/store-prices-watchdog.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:48:57 > git rev-parse refs/remotes/origin/dev^{commit} # timeout=10 20:48:57 Checking out Revision dd81d6ff60b1ed915647f1329637d6222652c512 (refs/remotes/origin/dev) 20:48:57 > git config core.sparsecheckout # timeout=10 20:48:57 > git checkout -f dd81d6ff60b1ed915647f1329637d6222652c512 # timeout=10 20:48:57 Commit message: "Convert date for Postgres" 20:48:57 > git rev-list --no-walk dd81d6ff60b1ed915647f1329637d6222652c512 # timeout=10 20:48:57
[workspace] $ /bin/sh -xe /tmp/jenkins9260412641438983169.sh 20:48:57 + python -m venv my-venv 20:48:59 + my-venv/bin/pip install -r config/requirements.txt 20:48:59 Requirement already satisfied: peewee==3.17.9 in ./my-venv/lib/python3.11/site-packages (from -r config/requirements.txt (line 1)) (3.17.9) 20:48:59 Collecting requests==2.32.3 20:48:59 Using cached requests-2.32.3-py3-none-any.whl (64 kB) 20:48:59 Collecting discord-webhook==1.4.1 20:48:59 Using cached discord_webhook-1.4.1-py3-none-any.whl (13 kB) 20:48:59 Collecting psycopg2==2.9.10 20:48:59 Using cached psycopg2-2.9.10.tar.gz (385 kB) 20:48:59 Preparing metadata (setup.py): started 20:49:00 Preparing metadata (setup.py): finished with status 'done' 20:49:00 Collecting charset-normalizer<4,>=2 20:49:00 Using cached charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (143 kB) 20:49:00 Collecting idna<4,>=2.5 20:49:00 Using cached idna-3.10-py3-none-any.whl (70 kB) 20:49:00 Requirement already satisfied: urllib3<3,>=1.21.1 in ./my-venv/lib/python3.11/site-packages (from requests==2.32.3->-r config/requirements.txt (line 2)) (2.4.0) 20:49:00 Collecting certifi>=2017.4.17 20:49:00 Using cached certifi-2025.1.31-py3-none-any.whl (166 kB) 20:49:00 Installing collected packages: psycopg2, idna, charset-normalizer, certifi, requests, discord-webhook 20:49:00 DEPRECATION: psycopg2 is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 20:49:00 Running setup.py install for psycopg2: started 20:49:00 Running setup.py install for psycopg2: finished with status 'error' 20:49:00 error: subprocess-exited-with-error 20:49:00 20:49:00 × Running setup.py install for psycopg2 did not run successfully. 20:49:00 │ exit code: 1 20:49:00 ╰─> [40 lines of output] 20:49:00 running install 20:49:00 /var/lib/jenkins/jobs/first/workspace/my-venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 20:49:00 warnings.warn( 20:49:00 running build 20:49:00 running build_py 20:49:00 creating build 20:49:00 creating build/lib.linux-x86_64-cpython-311 20:49:00 creating build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/pool.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/__init__.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/tz.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/extensions.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/extras.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/errorcodes.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/_ipaddress.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/_range.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/errors.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/sql.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 copying lib/_json.py -> build/lib.linux-x86_64-cpython-311/psycopg2 20:49:00 running build_ext 20:49:00 building 'psycopg2._psycopg' extension 20:49:00 creating build/temp.linux-x86_64-cpython-311 20:49:00 creating build/temp.linux-x86_64-cpython-311/psycopg 20:49:00 x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC "-DPSYCOPG_VERSION=2.9.10 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150012 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/var/lib/jenkins/jobs/first/workspace/my-venv/include -I/usr/include/python3.11 -I. -I/usr/include/postgresql -I/usr/include/postgresql/15/server -I/usr/include/libxml2 -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-cpython-311/psycopg/adapter_asis.o -Wdeclaration-after-statement 20:49:00 In file included from psycopg/adapter_asis.c:28: 20:49:00 ./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: No such file or directory 20:49:00 36 | #include <libpq-fe.h> 20:49:00 | ^~~~~~~~~~~~ 20:49:00 compilation terminated. 20:49:00 20:49:00 It appears you are missing some prerequisite to build the package from source. 20:49:00 20:49:00 You may install a binary package by installing 'psycopg2-binary' from PyPI. 20:49:00 If you want to install psycopg2 from source, please install the packages 20:49:00 required for the build and try again. 20:49:00 20:49:00 For further information please check the 'doc/src/install.rst' file (also at 20:49:00 <https://www.psycopg.org/docs/install.html>). 20:49:00 20:49:00 error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 20:49:00 [end of output] 20:49:00 20:49:00 note: This error originates from a subprocess, and is likely not a problem with pip. 20:49:00 error: legacy-install-failure 20:49:00 20:49:00 × Encountered error while trying to install package. 20:49:00 ╰─> psycopg2 20:49:00 20:49:00 note: This is an issue with the package mentioned above, not pip. 20:49:00 hint: See above for output from the failure. 20:49:00 Build step 'Execute shell' marked build as failure 20:49:00 Finished: FAILURE