Hi Graham,

On Mon, 8 Jan 2024 08:46:45 +0200 Graham Inggs <gin...@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

Reply via email to