#1151814 h5sparse: FTBFS: E ImportError: cannot import name '_debian_h5py_mpi' from partially initialized module 'h5py' (most likely due to a circular import) (/usr/lib/python3/dist-packages/h5py/__init__.py)

#1151814#5
Date:
2026-10-23 16:44:32 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:h5sparse, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
h5sparse/h5sparse.py:1: in <module>
    import h5py
/usr/lib/python3/dist-packages/h5py/__init__.py:26: in <module>
    from . import _debian_h5py_mpi as _h5py
E   ImportError: cannot import name '_debian_h5py_mpi' from partially initialized module 'h5py' (most likely due to a circular import) (/usr/lib/python3/dist-packages/h5py/__init__.py)
=========================== short test summary info ============================
ERROR h5sparse/tests.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.07s ===============================
E: pybuild pybuild:485: test: plugin custom failed with: exit code=2: PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.15/build python3.15 -m pytest -v h5sparse/tests.py
I: pybuild base:383: PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build python3.14 -m pytest -v h5sparse/tests.py
============================= test session starts ==============================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0 -- /usr/bin/python3.14
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>
collecting ... collected 8 items

h5sparse/tests.py::test_create_and_read_dataset PASSED                   [ 12%]
h5sparse/tests.py::test_create_dataset_with_format_change PASSED         [ 25%]
h5sparse/tests.py::test_create_empty_sparse_dataset PASSED               [ 37%]
h5sparse/tests.py::test_create_dataset_from_dataset PASSED               [ 50%]
h5sparse/tests.py::test_dataset_append PASSED                            [ 62%]
h5sparse/tests.py::test_numpy_array PASSED                               [ 75%]
h5sparse/tests.py::test_bytestring PASSED                                [ 87%]
h5sparse/tests.py::test_create_empty_dataset PASSED                      [100%]

=============================== warnings summary ===============================
h5sparse/tests.py::test_create_empty_dataset
  /<<PKGBUILDDIR>>/h5sparse/h5sparse.py:91: H5pyDeprecationWarning: Creating a dataset without passing data or dtype is deprecated. Pass an explicit dtype. Using dtype='f4' will keep the current default behaviour.
    return super(Group, self).create_dataset(

#1151814#10
Date:
2026-10-27 10:35:46 UTC
From:
To:
Control: retitle -1 h5sparse: FTBFS: ModuleNotFoundError: No module named 'scipy.__config__cpython-315-x86_64-linux-gnu__'

I: pybuild base:383: PYTHONPATH=/build/reproducible-path/h5sparse-0.1.0/.pybuild/cpython3_3.15/build python3.15 -m pytest -v h5sparse/tests.py
============================= test session starts ==============================
platform linux -- Python 3.15.1, pytest-9.1.1, pluggy-1.6.0 -- /usr/bin/python3.15
cachedir: .pytest_cache
rootdir: /build/reproducible-path/h5sparse-0.1.0
collecting ... Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/scipy/__init__.py", line 50, in <module>
     __config__ = _importlib.import_module('scipy.__config' + ('__'+_SOABI if _SOABI is not None else '') + '__')
   File "/usr/lib/python3.15/importlib/__init__.py", line 88, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1390, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1350, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1302, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'scipy.__config__cpython-315-x86_64-linux-gnu__'

Thanks,