[Debichem-devel] Bug#1056457: python-ase's autopkg tests fail with Python 3.12

Andrius Merkys merkys at debian.org
Fri Jan 19 12:32:33 GMT 2024


Hi Graham,

On Mon, 8 Jan 2024 08:46:45 +0200 Graham Inggs <ginggs at debian.org> wrote:
> However, since spglib stopped building its extension for all supported
> Python versions (see #1057858) testing python-ase against Python 3.12
> now fails with:
> 
> 531s INTERNALERROR> Traceback (most recent call last):
> 531s INTERNALERROR>   File
> "/usr/lib/python3/dist-packages/spglib/spglib.py", line 41, in
> <module>
> 531s INTERNALERROR>     from spglib import _spglib as spg
> 531s INTERNALERROR> ImportError: cannot import name '_spglib' from
> partially initialized module 'spglib' (most likely due to a circular
> import) (/usr/lib/python3/dist-packages/spglib/__init__.py)
> 
> Therefore, I let python-ase only test against the default Python
> version [1], and lower the severity of this bug, until either Python
> 3.12 is the default, or spglib builds its extension for all supported
> Python versions again.

Maybe an alternative solution would be to only disable spglib-related 
test cases for Python 3.12. It seems that spglib is not an essential 
dependency for python-ase, thus the remaining test cases could still be 
ran to ensure package's integrity on Python 3.12.

> [1] https://salsa.debian.org/debichem-team/python-ase/-/commit/b33055fd68da81e1806e7a0f0dd65dc5b53fc3b2
Best wishes,
Andrius



More information about the Debichem-devel mailing list