#1148462 mdanse: FTBFS against python 3.15rc2

Package:
src:mdanse
Source:
src:mdanse
Submitter:
Maximiliano Curia
Date:
2026-09-19 19:55:02 UTC
Severity:
normal
Tags:
#1148462#5
Date:
2026-09-19 19:53:52 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that mdanse fails to build from source [1].

The error is:

E   ImportError: cannot import name 'rdBase' from partially initialized module 'rdkit' (most likely due to a circular import) (/usr/lib/python3/dist-packages/rdkit/__init__.py

This happened because rdkit is only building against the default Python
version (3.14 in this case), while mdanse is trying to build against all
versions.

However, while looking into this I realized that there's no reason this
package should be arch:any, it should be arch:all instead. Switching to
arch:all and dropping the unused related dependencies makes the package
build successfully.

In the process of looking into this issue, I also ran into a test error
tolerance problem when building in arm64. By moving to arch:all that
issue will likely not be visible, but it's still good to make it
possible to build mdanse on arm64.

I've applied these fixes in the sandbox [2] to verify that it builds
successfully, please consider applying the patch to support the upcoming
3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4749251/
[2]: https://debusine.debian.net/debian/r-python-python3.15/