Issue 2551436
Created on 2026-11-06 01:44 by rouilj, last changed 2026-11-06 12:17 by cf-intevation.
| Messages | |||
|---|---|---|---|
| msg8571 | Author: [hidden] (rouilj) | Date: 2026-11-06 01:44 | |
Hi Bern: GPG is failing to install again across all python versions. This may be due to an upgrade to ubuntu 26.04.1. I have disabled the gpg install to get CI working again. source for log: https://github.com/roundup-tracker/roundup/actions/runs/42143893641/ job/127650592942#step:16:128 Log: Building wheels for collected packages: gpg Building wheel for gpg (pyproject.toml): started Building wheel for gpg (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error × Building wheel for gpg (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [54 lines of output] running bdist_wheel running build Using gpgme.h from /usr/include/gpgme.h running build_ext building 'gpg._gpgme' extension swigging build/gpgme.i to build/gpgme_wrap.c swig -python -threads -Ibuild -outdir build/lib.linux-x86_64- cpython-315/gpg -o build/gpgme_wrap.c build/gpgme.i build/gpgme.h:536: Warning 451: Setting a const char * variable may leak memory. gcc -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno- strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -Ibuild -I/ tmp/pip-install-j9cgh5aw/gpg_70bf2207ce9c43b0b8f163f88607daed -I/opt/ hostedtoolcache/Python/3.15.2/x64/include/python3.15 -c build/ gpgme_wrap.c -o build/temp.linux-x86_64-cpython-315/build/gpgme_wrap.o build/gpgme_wrap.c: In function ‘_wrap_gpgme_data_seek’: build/gpgme_wrap.c:4085:14: error: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit- function-declaration] 4085 | else if (PyInt_Check(swig_obj[1])) | ^~~~~~~~~~~ | PySet_Check build/gpgme_wrap.c:4086:12: error: implicit declaration of function ‘PyInt_AsLong’; did you mean ‘PyLong_AsLong’? [-Wimplicit- function-declaration] 4086 | arg2 = PyInt_AsLong(swig_obj[1]); | ^~~~~~~~~~~~ | PyLong_AsLong build/gpgme_wrap.c: In function ‘_wrap_gpgme_op_receive_keys_start’: build/gpgme_wrap.c:33667:18: error: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Wimplicit- function-declaration] 33667 | else if (PyString_Check(o)) | ^~~~~~~~~~~~~~ | PyMapping_Check build/gpgme_wrap.c:33668:19: error: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration] 33668 | arg2[i] = PyString_AsString(o); | ^~~~~~~~~~~~~~~~~ build/gpgme_wrap.c:33668:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 33668 | arg2[i] = PyString_AsString(o); | ^ build/gpgme_wrap.c: In function ‘_wrap_gpgme_op_receive_keys’: build/gpgme_wrap.c:33754:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 33754 | arg2[i] = PyString_AsString(o); | ^ build/gpgme_wrap.c: In function ‘_wrap_gpgme_op_export_ext_start’: build/gpgme_wrap.c:34420:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 34420 | arg2[i] = PyString_AsString(o); | ^ build/gpgme_wrap.c: In function ‘_wrap_gpgme_op_export_ext’: build/gpgme_wrap.c:34736:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 34736 | arg2[i] = PyString_AsString(o); | ^ build/gpgme_wrap.c: In function ‘_wrap_gpgme_op_keylist_ext_start’: build/gpgme_wrap.c:40189:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 40189 | arg2[i] = PyString_AsString(o); | ^ build/gpgme_wrap.c: In function ‘_wrap_gpgme_op_spawn_start’: build/gpgme_wrap.c:40824:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 40824 | arg3[i] = PyString_AsString(o); | ^ build/gpgme_wrap.c: In function ‘_wrap_gpgme_op_spawn’: build/gpgme_wrap.c:40969:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 40969 | arg3[i] = PyString_AsString(o); | ^ error: Command ['gcc', '-fno-omit-frame-pointer', '-mno-omit-leaf- frame-pointer', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '- g', '-O3', '-Wall', '-fPIC', '-Ibuild', '-I/tmp/pip-install-j9cgh5aw/ gpg_70bf2207ce9c43b0b8f163f88607daed', '-I/opt/hostedtoolcache/ Python/3.15.2/x64/include/python3.15', '-c', 'build/gpgme_wrap.c', '-o', 'build/temp.linux-x86_64-cpython-315/build/gpgme_wrap.o'] returned non- zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for gpg error: failed-wheel-build-for-install × Failed to build installable wheels for some pyproject.toml based projects ╰─> gpg Failed to build gpg |
|||
| msg8573 | Author: [hidden] (cf-intevation) | Date: 2026-11-06 12:17 | |
Same reason as in issue2551427 before. Use --no-build-isolation when installing gpg in https://github.com/ roundup-tracker/roundup/blob/master/.github/workflows/ci-test.yml#L243 and ensure that setuptools is installed prior to that. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2026-11-06 12:17:04 | cf-intevation | set | nosy:
+ cf-intevation messages: + msg8573 |
| 2026-11-06 01:44:12 | rouilj | create | |