[Debian-pan-maintainers] Bug#1056042: xrayutilities ftbfs with Python 3.12

s3v c0llapsed at yahoo.it
Sat Jan 6 14:26:22 GMT 2024


Dear Maintainer,

After uncertainties/3.1.7 entered in unstable, your package builds fine
in my sid chroot environment and all tests pass.

Import that triggers the failure:

  from past.builtins import basestring

was turned in:

if sys.version_info < (3,):
     from past.builtins import basestring
else:
     # Avoid importing from past in Python 3 since it utilizes the builtin
     # 'imp' module, which is deprecated as of Python 3.4, see
     # https://docs.python.org/3/library/imp.html. The 2to3 tool replaces
     # basestring with str, so that's what we effectively do here as well:
     basestring = str


Kind Regards

[1] https://salsa.debian.org/debian/python-uncertainties/-/commit/f9951a9e9d708c8ec38d6a0488f865d8


On Thu, 16 Nov 2023 09:57:09 +0100 Matthias Klose <doko at debian.org> wrote:
> Package: src:xrayutilities
> Version: 1.7.4-1
> Severity: important
> Tags: sid trixie
> User: debian-python at lists.debian.org
> Usertags: python3.12
>
> some tests fail with:
>
> [...]
> /usr/lib/python3.12/subprocess.py:571: CalledProcessError
> ----------------------------- Captured stderr call
> -----------------------------
> Traceback (most recent call last):
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_xrayutilities/build/examples/simpack_xrr_SiO2_Ru_CoFe_IrMn_Al2O3.py",
> line 20, in <module>
> import lmfit
> File "/usr/lib/python3/dist-packages/lmfit/__init__.py", line 38, in
> <module>
> from .confidence import conf_interval, conf_interval2d
> File "/usr/lib/python3/dist-packages/lmfit/confidence.py", line 10,
> in <module>
> from .minimizer import MinimizerException
> File "/usr/lib/python3/dist-packages/lmfit/minimizer.py", line 41, in
> <module>
> from .parameter import Parameter, Parameters
> File "/usr/lib/python3/dist-packages/lmfit/parameter.py", line 10, in
> <module>
> from uncertainties import correlated_values, ufloat
> File "/usr/lib/python3/dist-packages/uncertainties/__init__.py", line
> 225, in <module>
> from .core import *
> File "/usr/lib/python3/dist-packages/uncertainties/core.py", line 22,
> in <module>
> from past.builtins import basestring
> File "/usr/lib/python3/dist-packages/past/builtins/__init__.py", line
> 54, in <module>
> from past.builtins.misc import (apply, chr, cmp, execfile, intern, oct,
> File "/usr/lib/python3/dist-packages/past/builtins/misc.py", line 45,
> in <module>
> from imp import reload
> ModuleNotFoundError: No module named 'imp'
>
> complete build log at
> https://launchpadlibrarian.net/697894338/buildlog_ubuntu-noble-amd64.xrayutilities_1.7.4-1build2_BUILDING.txt.gz
>
>



More information about the Debian-pan-maintainers mailing list