With python3-defaults from experimental, the package fails to build:
[...]
dh_auto_build
I: pybuild base:305: /usr/bin/python3.11 setup.py build
I: pybuild base:305: /usr/bin/python3 setup.py build
bash format.sh
[WARNING] Deprecated: --self-contained. use --embed-resources --standalone
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
./check
Running unit tests ============================================
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3/dist-packages/CoverageTestRunner.py", line 22,
in <module>
import imp
ModuleNotFoundError: No module named 'imp'
make[1]: *** [debian/rules:16: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-01-29T10:47:03Z
Hi,
I've attempted to fix python-coverage-test-runner in Git since this
package is finally responsible for the failure of vmdb2:
File "/usr/lib/python3/dist-packages/CoverageTestRunner.py", line 22,
in <module>
import imp
ModuleNotFoundError: No module named 'imp'
In the patch in Git[1] I replaced imp by importlib (and distutils by
setuptools but this is not causing actual problems). Unfortunately
when trying to run vmdb2 test against this patched package I get:
./check
Running unit tests ============================================
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3/dist-packages/CoverageTestRunner.py", line 313, in <module>
run()
File "/usr/lib/python3/dist-packages/CoverageTestRunner.py", line 304, in run
result = runner.run()
^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/CoverageTestRunner.py", line 211, in run
importlib.reload(module)
File "/usr/lib/python3.11/importlib/__init__.py", line 148, in reload
raise ImportError(msg.format(name), name=name)
ImportError: module plugin not in sys.modules
The fact that
importlib.reload(module)
makes me wonder whether my patch for _load_module_from_pathname() is
correct (despite when I added some debug lines it looked sensible). Any
help is welcome.
Kind regards
Andreas.
[1] https://salsa.debian.org/python-team/packages/python-coverage-test-runner/-/blob/master/debian/patches/Python3.12.patch?ref_type=heads
Hi Andreas, I had a similar problem. I worked it around by depending on python3-zombie-imp, the original code did not require any modifications. Best, Andrius
HI Andrius, Am Fri, Feb 23, 2024 at 09:29:27AM +0200 schrieb Andrius Merkys: Nice hint - implemented. Thanks a lot Andreas.
We believe that the bug you reported is fixed in the latest version of
vmdb2, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1061765@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated vmdb2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 23 Feb 2024 16:58:18 +0100
Source: vmdb2
Architecture: source
Version: 0.28-2
Distribution: unstable
Urgency: medium
Maintainer: Gunnar Wolf <gwolf@debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Closes: 1061765
Changes:
vmdb2 (0.28-2) unstable; urgency=medium
.
* Team upload.
* Versioned (Test-)Depends python3-coverage-test-runner (>= 1.13.1-6~)
Closes: #1061765
* Standards-Version: 4.6.2 (routine-update)
* Reorder sequence of d/control fields by cme (routine-update)
* Add upstream metadata (Debian Janitor)
Checksums-Sha1:
9edf3b72e29d83eb4ad76a5e5c253d3c64763ba1 2011 vmdb2_0.28-2.dsc
92bee4a0e02c0b2ebc536da94e92156330032278 4824 vmdb2_0.28-2.debian.tar.xz
16553cff0022a46966233c16887b815af4e85bdb 7895 vmdb2_0.28-2_amd64.buildinfo
Checksums-Sha256:
6be38471233ebee1ca70a8aaf62152f3aa4281354bd3a9d74c32c7ca3405f2f1 2011 vmdb2_0.28-2.dsc
c15928ac82ba5ca6512e58d8e63c9524f9b98c58f56cce3be8918eaf0fcbe969 4824 vmdb2_0.28-2.debian.tar.xz
4a977e7be7c37ce39221d786e628c77d96a250842938a23d5a814808611b818e 7895 vmdb2_0.28-2_amd64.buildinfo
Files:
c79d45cc51dedba21f4b16dbc74b1496 2011 admin optional vmdb2_0.28-2.dsc
5f47f9af0fd18e612145e53065dbcfd1 4824 admin optional vmdb2_0.28-2.debian.tar.xz
1b9431d0b14cd524d361b6d1efe1d90b 7895 admin optional vmdb2_0.28-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmXYwgARHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFA4g/+J1PJacFa3BMO4cUGBjRBGn7PenVzb1Tt
LSRgM36mdP85qXDlJvbh+pvoZ+5zsHqf8RUDUAJANNje1JUcHSTklJ584P/OoGsf
YvcCxR9gtzRQO4Td9eGozdf3SNn6yrkg8OAxQBq77ZMO9leUnonqvdwvuxs41vSe
5ARLQkto6GVFTJo2Rye9e1xrAMelRaNQwjRiicmUSwMeWlLhmegmC4eI9yGL0Quy
dIEAAD1hUaUEfBkDvHDCrPHzcrjWTc2go9tEOsbRu+CTqGV68YCC3HdbLOMBuOmG
NlfCXcGeRD0NbbP90icoW2WK3iUoavmBxDFEYqVtMPiT4BR9Y9ydBx+xW3GwIV9P
BN85sQLWks3uLLtiC29g5KgMX0icr/G6KnRFtwYSnzqZz9GjxAKLsAVvBXdeiLdD
jpIWR9vxhLONcRj5HocwWUxJguBlXrSdqvmg2JELmu6L+QdcH7H5QS1L0ErQe0FP
NwjjmEm2Ps52l+2wX1MuHyVpodPREb8h5xRIviMWNg+MJxG+hegWE5EUKYEb3OBD
Cg1w8uQsAhDtXAYx1jfoOhyzmiaZ9jWH9I5fkJFw56QUXBng5k1GQQAB18M61zfW
OKmj32EOEc3v8WsF4MekV7Nd304KwzXysEMsQKViKEcnzNL1tQt0aHKjbyWz9YEX
gM+gXcOu79s=
=/Onl
-----END PGP SIGNATURE-----
Andreas Tille dijo [Fri, Feb 23, 2024 at 03:22:27PM +0100]: Thank you very much for your work, Andreas!