[Debian-astro-maintainers] Bug#1145924: sunpy: FTBFS: E UserWarning: h5py is running against HDF5 2.2.0 when it was built against 2.1.0, this may cause problems
Santiago Vila
sanvila at debian.org
Thu Aug 27 20:46:42 BST 2026
Package: src:sunpy
Version: 8.0.0-1
Severity: serious
Tags: ftbfs forky sid
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/202608/
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:sunpy, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
==================================== ERRORS ====================================
_________________ ERROR collecting sunpy/io/tests/test_cdf.py __________________
ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sunpy/build/sunpy/io/tests/test_cdf.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3/dist-packages/h5py/__init__.py:24: in <module>
from . import _debian_h5py_serial as _h5py
/usr/lib/python3/dist-packages/h5py/_debian_h5py_serial/__init__.py:36: in <module>
_warn(("h5py is running against HDF5 {0} when it was built against {1}, "
E UserWarning: h5py is running against HDF5 2.2.0 when it was built against 2.1.0, this may cause problems
During handling of the above exception, another exception occurred:
/usr/lib/python3.14/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sunpy/io/tests/test_cdf.py:10: in <module>
from sunpy.timeseries import GenericTimeSeries, TimeSeries
sunpy/timeseries/__init__.py:7: in <module>
from sunpy.timeseries.sources import *
sunpy/timeseries/sources/__init__.py:11: in <module>
from sunpy.timeseries.sources.goes import XRSTimeSeries
sunpy/timeseries/sources/goes.py:7: in <module>
import h5netcdf
/usr/lib/python3/dist-packages/h5netcdf/__init__.py:16: in <module>
from .core import CompatibilityError, Dimension, File, Group, Variable # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/h5netcdf/core.py:9: 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)
______________________ ERROR collecting sunpy/timeseries _______________________
/usr/lib/python3/dist-packages/h5py/__init__.py:24: in <module>
from . import _debian_h5py_serial as _h5py
/usr/lib/python3/dist-packages/h5py/_debian_h5py_serial/__init__.py:36: in <module>
_warn(("h5py is running against HDF5 {0} when it was built against {1}, "
E UserWarning: h5py is running against HDF5 2.2.0 when it was built against 2.1.0, this may cause problems
During handling of the above exception, another exception occurred:
/usr/lib/python3.14/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1406: in _gcd_import
???
<frozen importlib._bootstrap>:1371: in _find_and_load
???
<frozen importlib._bootstrap>:1314: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:491: in _call_with_frames_removed
???
<frozen importlib._bootstrap>:1406: in _gcd_import
???
<frozen importlib._bootstrap>:1371: in _find_and_load
???
<frozen importlib._bootstrap>:1342: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:938: in _load_unlocked
???
<frozen importlib._bootstrap_external>:759: in exec_module
???
<frozen importlib._bootstrap>:491: in _call_with_frames_removed
???
sunpy/timeseries/__init__.py:7: in <module>
from sunpy.timeseries.sources import *
sunpy/timeseries/sources/__init__.py:11: in <module>
from sunpy.timeseries.sources.goes import XRSTimeSeries
sunpy/timeseries/sources/goes.py:7: in <module>
import h5netcdf
/usr/lib/python3/dist-packages/h5netcdf/__init__.py:16: in <module>
from .core import CompatibilityError, Dimension, File, Group, Variable # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/h5netcdf/core.py:9: 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)
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464: PytestConfigWarning: Unknown config option: asdf_schema_root
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464: PytestConfigWarning: Unknown config option: asdf_schema_tests_enabled
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464: PytestConfigWarning: Unknown config option: mpl-results-path
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:1464: PytestConfigWarning: Unknown config option: mpl-use-full-test-name
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR sunpy/io/tests/test_cdf.py
ERROR sunpy/timeseries - ImportError: cannot import name '_debian_h5py_mpi' f...
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
=========== 9 skipped, 121 deselected, 4 warnings, 2 errors in 5.43s ===========
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sunpy/build; python3.14 -m pytest -k "not figure and not online and not asdf"
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Debian-astro-maintainers
mailing list