You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/usr/lib/python3.12/site-packages/gpg/core.py", line 10, in <module>
from . import gpgme
ImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/usr/lib/python3.12/site-packages/gpg/__init__.py)
the package should install gpg/gpgme.py, but does not
gpgme.py is generated via SWIG
I performed a git bisect of setuptools:
0ab156c3e12054503a0dac0ce172e241262881f4 is the first bad commit
commit 0ab156c3e12054503a0dac0ce172e241262881f4
Merge: 54936c73b b7ee725f3
Author: Jason R. Coombs <[email protected]>
Date: Fri Aug 2 15:13:01 2024 -0400
Merge https://github.com/pypa/distutils
* python3_12: running distutils-r1_run_phase distutils-r1_python_compilepython3.12 setup.py build -j 8Using gpgme.h from ../../src/gpgme.hwarning: build_py: byte-compiling is disabled, skipping.>>> Source compiled.>>> Test phase: app-crypt/gpgme-1.23.2 * base: running gpgme_src_test[...] * python3_12: running distutils-r1_run_phase python_testmake -j8 -O -C lang/python/tests check PYTHON=python3.12 PYTHONS=python3.12 TESTFLAGS=--python-libdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib make: Entering directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'echo no-force-v3-sigs > ./gpg.confecho default-key A0FF4590BB6122EDEF6E3C542D727CC768697734 >> ./gpg.confmake: Leaving directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'make: Entering directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'echo pinentry-program /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/pinentry >gpg-agent.confecho disable-scdaemon >> gpg-agent.confmake: Leaving directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'make: Entering directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'GNUPGHOME=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests LC_ALL=C GPG_AGENT_INFO= top_srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests LD_LIBRARY_PATH="../../../src/.libs:" gpgconf --kill all/usr/bin/mkdir -p ./private-keys-v1.dfor k in /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/13CD0F3BDF24BE53FE192D62F18737256FF6E4FD /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/76F7E2B35832976B50A27A282D9B87E44577EB66 /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/13CBE3758AFE42B5E5E2AE4CED27AFA455E3F87F /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/7A030357C0F253A5BBCD282FFC4E521B37558F5C; do \ cp $k private-keys-v1.d/${k#/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/}.key; \ doneecho x > ./gpg-sample.stampmake: Leaving directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'make: Entering directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'GNUPGHOME=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests LC_ALL=C GPG_AGENT_INFO= top_srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests LD_LIBRARY_PATH="../../../src/.libs:" gpg --batch --no-permission-warning \ --import /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/pubdemo.ascgpg: Warning: using insecure memory!gpg: keybox '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests/pubring.kbx' createdgpg: /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests/trustdb.gpg: trustdb createdgpg: key 2D727CC768697734: public key "Alfa Test (demo key) <[email protected]>" importedgpg: key FE180B1DA9E3B0B2: public key "Bob (demo key)" importedgpg: key 413F4AF31AFDAB6C: public key "Charlie Test (demo key) <[email protected]>" importedgpg: key EBA9F240EB9DC9E6: public key "Delta Test (demo key) <[email protected]>" importedgpg: key 318C1FAEFAEF6D1B: public key "Echelon (demo key)" importedgpg: key D4BF57F37372E243: public key "Foxtrot Test (demo key) <[email protected]>" importedgpg: key 168410A48FC282E6: public key "Golf Test (demo key) <[email protected]>" importedgpg: key 13DB965534C6E3F1: public key "Hotel Test (demo key) <[email protected]>" importedgpg: key 1FE8FC6F04259677: public key "India Test (demo key) <[email protected]>" importedgpg: key 0C820C71D2699313: public key "Juliet Test (demo key) <[email protected]>" importedgpg: key AD1B0FAD43C2D0C7: public key "Kilo Test (demo key) <[email protected]>" importedgpg: key 37CAB51FB79103F8: public key "Lima Test (demo key) <[email protected]>" importedgpg: key BE794852BE5CF886: public key "Mallory (demo key)" importedgpg: key 25B00FD430CEC684: public key "November Test (demo key) <[email protected]>" importedgpg: key 5F6356BA6D9732AC: public key "Oscar Test (demo key) <[email protected]>" importedgpg: key 5D15E01D3FF13206: public key "Papa test (demo key) <[email protected]>" importedgpg: key 1C67EC133C661C84: public key "Quebec Test (demo key) <[email protected]>" importedgpg: key 3BDBEDB1777FBED3: public key "Romeo Test (demo key) <[email protected]>" importedgpg: key A5E67F7FA3AE3EA1: public key "Sierra Test (demo key) <[email protected]>" importedgpg: key 58CB9A4C85A81F38: public key "Tango Test (demo key) <[email protected]>" importedgpg: key A94C0F75653244D6: public key "Uniform Test (demo key) <[email protected]>" importedgpg: key 47AF4B6961F04784: public key "Victor Test (demo key) <[email protected]>" importedgpg: key DEF0F7B8EC67DBDE: public key "Whisky Test (demo key) <[email protected]>" importedgpg: key 8979A6C5567FB34A: public key "XRay Test (demo key) <[email protected]>" importedgpg: key 9EEF34CD4B11B25F: public key "Yankee Test (demo key) <[email protected]>" importedgpg: key 6BC4778054ACD246: public key "Zulu Test (demo key) <[email protected]>" importedgpg: Total number processed: 26gpg: imported: 26GNUPGHOME=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests LC_ALL=C GPG_AGENT_INFO= top_srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests LD_LIBRARY_PATH="../../../src/.libs:" gpg --batch --no-permission-warning \ --import /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/tests/gpg/secdemo.ascgpg: Warning: using insecure memory!gpg: key 2D727CC768697734: "Alfa Test (demo key) <[email protected]>" 1 new signaturegpg: key 2D727CC768697734: secret key importedgpg: key 6BC4778054ACD246: "Zulu Test (demo key) <[email protected]>" 1 new signaturegpg: key 6BC4778054ACD246: secret key importedgpg: Total number processed: 2gpg: new signatures: 2gpg: secret keys read: 2gpg: secret keys unchanged: 2GNUPGHOME=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests LC_ALL=C GPG_AGENT_INFO= top_srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests LD_LIBRARY_PATH="../../../src/.libs:" gpgconf --kill allecho x > ./pubring-stampmake: Leaving directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'make all-ammake[1]: Nothing to be done for 'all-am'.make: Entering directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests'GNUPGHOME=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests LC_ALL=C GPG_AGENT_INFO= top_srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests LD_LIBRARY_PATH="../../../src/.libs:" python3.12 /var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/run-tests.py \ --interpreters="python3.12" --srcdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests --python-libdir=/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib \ initial.py t-wrapper.py t-callbacks.py t-data.py t-encrypt.py t-encrypt-sym.py t-encrypt-sign.py t-sign.py t-signers.py t-decrypt.py t-verify.py t-decrypt-verify.py t-sig-notation.py t-export.py t-import.py t-edit.py t-keylist.py t-keylist-from-data.py t-wait.py t-encrypt-large.py t-file-name.py t-idiomatic.py t-protocol-assuan.py t-quick-key-creation.py t-quick-subkey-creation.py t-quick-key-manipulation.py t-quick-key-signing.py final.pyTraceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/initial.py", line 24, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-wrapper.py", line 20, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-callbacks.py", line 24, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-data.py", line 25, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-encrypt.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-encrypt-sym.py", line 23, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-encrypt-sign.py", line 23, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-sign.py", line 23, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-signers.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-decrypt.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-verify.py", line 24, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-decrypt-verify.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-sig-notation.py", line 23, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-export.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-import.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-edit.py", line 25, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-keylist.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-keylist-from-data.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-wait.py", line 23, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-encrypt-large.py", line 24, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-file-name.py", line 23, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-idiomatic.py", line 26, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-protocol-assuan.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-quick-key-creation.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-quick-subkey-creation.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-quick-key-manipulation.py", line 23, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/t-quick-key-signing.py", line 22, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Traceback (most recent call last): File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b/lang/python/tests/final.py", line 24, in <module> import support File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/gpgme-1.23.2/lang/python/tests/support.py", line 27, in <module> import gpg File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py", line 123, in <module> from . import core File "/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/core.py", line 10, in <module> from . import gpgmeImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base-python3_12/lib/gpg/__init__.py)Running tests using python3.12 (3.12)...FAIL: initial.pyFAIL: t-wrapper.pyFAIL: t-callbacks.pyFAIL: t-data.pyFAIL: t-encrypt.pyFAIL: t-encrypt-sym.pyFAIL: t-encrypt-sign.pyFAIL: t-sign.pyFAIL: t-signers.pyFAIL: t-decrypt.pyFAIL: t-verify.pyFAIL: t-decrypt-verify.pyFAIL: t-sig-notation.pyFAIL: t-export.pyFAIL: t-import.pyFAIL: t-edit.pyFAIL: t-keylist.pyFAIL: t-keylist-from-data.pyFAIL: t-wait.pyFAIL: t-encrypt-large.pyFAIL: t-file-name.pyFAIL: t-idiomatic.pyFAIL: t-protocol-assuan.pyFAIL: t-quick-key-creation.pyFAIL: t-quick-subkey-creation.pyFAIL: t-quick-key-manipulation.pyFAIL: t-quick-key-signing.pyFAIL: final.py28 tests run, 0 succeeded, 28 failed, 0 skipped.make: *** [Makefile:628: xcheck] Error 28make: Leaving directory '/var/tmp/portage/app-crypt/gpgme-1.23.2/work/b-base/lang/python/tests' * ERROR: app-crypt/gpgme-1.23.2::gentoo failed (test phase):[...]
gnupg has an analysis of the issue here, and a... workaround? fix? You decide.
build,python: Fix build with setuptools 72.2.0+
* lang/python/setup.py.in (BuildExtFirstHack.run): Extend members of the
extension instead of lists that were passed to the extension.
--
setuptools 72.2.0 integrated changes in distutils which included
"Support for Pathlike objects in data files and extensions". With this
change the extensions now take a copy of the sources list passed to the
constructor instead of keeping a reference to the passed list. Hence,
modifying the sources list that was passed to the extension didn't
change the sources list of the extension anymore. This is fixed by
modifying the sources list of the extension directly. For consistency
we do the same for the swig_opts list.
It's totally broken with the only setuptools we have in-tree. Revbump
directly to stable.
Bug: pypa/setuptools#4642
Signed-off-by: Eli Schwartz <[email protected]>
setuptools version
setuptools==73.0.1
Python version
python 3.12
OS
Gentoo Linux
Additional environment information
No response
Description
Recently, the https://packages.gentoo.org/packages/app-crypt/gpgme package in Gentoo started failing to run tests weirdly, and also fails at runtime.
Reported at https://forums.gentoo.org/viewtopic-t-1170670.html and verified locally, the error looks like this:
I performed a git bisect of setuptools:
Expected behavior
gpgme should install all files.
How to Reproduce
In a gentoo container:
emerge --oneshot =setuptools-73.0.1
USE=python FEATURES=test emerge --oneshot app-crypt/gpgme
Output
Full build log: build.log
The text was updated successfully, but these errors were encountered: