[Debian-pan-maintainers] Bug#1089070: xraylib: autopkgtest failure with Python 3.13

Colin Watson cjwatson at debian.org
Fri Dec 13 00:55:21 GMT 2024


Control: tag -1 patch

On Wed, Dec 04, 2024 at 08:10:55PM -0100, Graham Inggs wrote:
> The autopkgtests of this package fail with Python 3.13 [1].  I've
> copied what I hope is the relevant part of the log below.
[...]
> 137s ERROR: test-atomiclevelwidth
> (unittest.loader._FailedTest.test-atomiclevelwidth)
> 137s ----------------------------------------------------------------------
> 137s ImportError: Failed to import test module: test-atomiclevelwidth
> 137s Traceback (most recent call last):
> 137s File "/usr/lib/python3.13/unittest/loader.py", line 137, in
> loadTestsFromName
> 137s module = __import__(module_name)
> 137s File "/tmp/autopkgtest-lxc.fi8tnbgp/downtmp/build.g5v/src/python/tests/test-atomiclevelwidth.py",
> line 2, in <module>
> 137s import xraylib
> 137s File "/usr/lib/python3/dist-packages/xraylib.py", line 14, in <module>
> 137s import _xraylib
> 137s ModuleNotFoundError: No module named '_xraylib'

I believe the attached patch does the job: it builds and passes
autopkgtests, adding a Python 3.13 extension.

Thanks,

-- 
Colin Watson (he/him)                              [cjwatson at debian.org]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Build-for-all-supported-Python-versions.patch
Type: text/x-diff
Size: 2241 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20241213/76d3c813/attachment.patch>


More information about the Debian-pan-maintainers mailing list