Started by user Simon Pruvost Running as SYSTEM Building in workspace /var/lib/jenkins/jobs/first/workspace The recommended git tool is: NONE using credential 8a11502e-f80d-4742-a451-704b40f19292 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/first/workspace/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://framagit.org/pruvosim/store-prices-watchdog.git # timeout=10 Fetching upstream changes from https://framagit.org/pruvosim/store-prices-watchdog.git > git --version # timeout=10 > git --version # 'git version 2.39.5' using GIT_ASKPASS to set credentials > git fetch --tags --force --progress -- https://framagit.org/pruvosim/store-prices-watchdog.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/dev^{commit} # timeout=10 Checking out Revision dd81d6ff60b1ed915647f1329637d6222652c512 (refs/remotes/origin/dev) > git config core.sparsecheckout # timeout=10 > git checkout -f dd81d6ff60b1ed915647f1329637d6222652c512 # timeout=10 Commit message: "Convert date for Postgres" > git rev-list --no-walk dd81d6ff60b1ed915647f1329637d6222652c512 # timeout=10 [workspace] $ /bin/sh -xe /tmp/jenkins9260412641438983169.sh + python -m venv my-venv + my-venv/bin/pip install -r config/requirements.txt 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) Collecting requests==2.32.3 Using cached requests-2.32.3-py3-none-any.whl (64 kB) Collecting discord-webhook==1.4.1 Using cached discord_webhook-1.4.1-py3-none-any.whl (13 kB) Collecting psycopg2==2.9.10 Using cached psycopg2-2.9.10.tar.gz (385 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (143 kB) Collecting idna<4,>=2.5 Using cached idna-3.10-py3-none-any.whl (70 kB) 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) Collecting certifi>=2017.4.17 Using cached certifi-2025.1.31-py3-none-any.whl (166 kB) Installing collected packages: psycopg2, idna, charset-normalizer, certifi, requests, discord-webhook 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 Running setup.py install for psycopg2: started Running setup.py install for psycopg2: finished with status 'error' error: subprocess-exited-with-error × Running setup.py install for psycopg2 did not run successfully. │ exit code: 1 ╰─> [40 lines of output] running install /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. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/pool.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/__init__.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/tz.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/extensions.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/extras.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/errorcodes.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/_ipaddress.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/_range.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/errors.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/sql.py -> build/lib.linux-x86_64-cpython-311/psycopg2 copying lib/_json.py -> build/lib.linux-x86_64-cpython-311/psycopg2 running build_ext building 'psycopg2._psycopg' extension creating build/temp.linux-x86_64-cpython-311 creating build/temp.linux-x86_64-cpython-311/psycopg 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 In file included from psycopg/adapter_asis.c:28: ./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: No such file or directory 36 | #include | ^~~~~~~~~~~~ compilation terminated. It appears you are missing some prerequisite to build the package from source. You may install a binary package by installing 'psycopg2-binary' from PyPI. If you want to install psycopg2 from source, please install the packages required for the build and try again. For further information please check the 'doc/src/install.rst' file (also at ). error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> psycopg2 note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. Build step 'Execute shell' marked build as failure Finished: FAILURE