[Debichem-devel] Bug#1116437: python-ase: autopkgtest regression with NumPy 2.3
Timo Röhling
roehling at debian.org
Sat Sep 27 10:59:38 BST 2025
Source: python-ase
Version: 3.24.0-1
Severity: important
User: debian-python at lists.debian.org
Usertags: numpy2.3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear maintainer,
your package has an autopkgtest regression with NumPy 2.3. Hopefully
relevant excerpt from
https://ci.debian.net/data/autopkgtest/unstable/amd64/p/python-ase/64768747/log.gz
follows:
225s =================================== FAILURES ===================================
225s __________________________________ test_long ___________________________________
225s
225s cli = <ase.test.conftest.CLI object at 0x7efd207d92b0>
225s dbfile = '/tmp/pytest-of-debci/pytest-0/db0/x.db'
225s
225s def test_long(cli, dbfile):
225s > txt = cli.ase('db', dbfile, 'formula=Ti2', '--long')
225s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
225s
225s /usr/lib/python3/dist-packages/ase/test/db/test_cli.py:72:
225s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
225s 225s self = <ase.test.conftest.CLI object at 0x7efd207d92b0>, expect_fail = False
225s self = <ase.test.conftest.CLI object at 0x7efd207d92b0>, expect_fail = False
225s args = ('db', '/tmp/pytest-of-debci/pytest-0/db0/x.db', 'formula=Ti2', '--long')
225s environment = {'ADTTMP': '/tmp/autopkgtest-lxc.ttfkrag6/downtmp/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest-lxc.ttfkrag6/do...GTEST_ARTIFACTS': '/tmp/autopkgtest-lxc.ttfkrag6/downtmp/command1-artifacts', 'AUTOPKGTEST_TESTBED_ARCH': 'amd64', ...}
225s proc = <Popen: returncode: 1 args: ['ase', '-T', 'db', '/tmp/pytest-of-debci/pytest...>
225s
225s def ase(self, *args, expect_fail=False):
225s environment = {}
225s environment.update(os.environ)
225s # Prevent failures due to Tkinter-related default backend
225s # on systems without Tkinter.
225s environment['MPLBACKEND'] = 'Agg'
225s
225s proc = Popen(['ase', '-T'] + list(args),
225s stdout=PIPE, stdin=PIPE,
225s env=environment)
225s stdout, _ = proc.communicate(b'')
225s status = proc.wait()
225s > assert (status != 0) == expect_fail
225s E assert (1 != 0) == False
225s
225s /usr/lib/python3/dist-packages/ase/test/conftest.py:406: AssertionError
225s ----------------------------- Captured stderr call -----------------------------
225s Traceback (most recent call last):
225s File "/usr/bin/ase", line 8, in <module>
225s sys.exit(main())
225s ~~~~^^
225s File "/usr/lib/python3/dist-packages/ase/cli/main.py", line 102, in main
225s f(args)
225s ~^^^^^^
225s File "/usr/lib/python3/dist-packages/ase/cli/db.py", line 113, in run
225s main(args)
225s ~~~~^^^^^^
225s File "/usr/lib/python3/dist-packages/ase/db/cli.py", line 238, in main
225s print(row2str(row))
225s ~~~~~~~^^^^^
225s File "/usr/lib/python3/dist-packages/ase/db/cli.py", line 294, in row2str
225s S.append(fmt.format(c, [' no', 'yes'][p], axis, L, A))
225s ~~~~~~~~~~~~~~^^^
225s TypeError: list indices must be integers or slices, not numpy.bool
225s --------------------------- Captured stdout teardown ---------------------------
225s Global seed for "test/db/test_cli.py:test_long" was: 2580
Cheers
Timo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmjXtYkACgkQzIxr3RQD
9MrTyA/9FacwxbZfSPC2SrgXXNYrQzJDvd1O3K3sMd4r8lRx6YwPC9pz6XZkJkXZ
ZwSiqw0UG3vu5sUJD6fSt/+yty5Qkx8FWX2rWIgUzpD0YPMxUVIePytwm0ZsAwjF
5cYtfyHZs1aTPX1ceKKnAvK1D/uB4egJ6e5vULOtAl8aD1XyIc59O2mru6wP1EuV
4FbfaAOEHliE8jAE/8UEbiSrC09vNFHGbRmltLKvMOcjYcSw36hwphF8b9dNVPnU
h/U7I44DFGTI62ZrLIBLuHMRgzN46lWkUE6G916Lq576yVu4/DM/02vSiH3A/O8F
7a/8IueUHfUJjIqyQK5zlNp8ttlvekfxx67kQWuzquMBR0vo2syXLLeEvA5bOjHj
I6kc2IWAVhh713mCwKpDNmPX4MSLGlNPDzsC7U93I9qiGbs1p65Xd6elu7fcKOCZ
EQGsVWvMjS5Hsmlb0EpapJ+lG2MVaswWl96oKQkhw5bpqfBnoTd7lGWSC98WC9n7
TqpquTD7tVHlIgdC7OmH8MNwzbUoQKJh0E4Vrag90bnCNN3wZspnh7uw9LhH1e2G
2vuaVeIqJeBBw/Zw2L2pJCGMmOesbc4sd3GJCYNcxuMFQUIensTwCqvZXlkcflmE
VfECtPwSHw6Jt5KIyvetM+QHObBIJlrJaDVj1XTvOCu4JgHo+DQ=
=fZtf
-----END PGP SIGNATURE-----
More information about the Debichem-devel
mailing list