With the current packages provided by MSYS2, a warning about incompatible HDF5 versions is printed. The source of this error seems to be that h5py (https://packages.msys2.org/packages/mingw-w64-x86_64-python-h5py) is built against HDF 2.1.0, whereas the actual HDF5 library is provided as version 2.1.1 by MSYS2 (https://packages.msys2.org/packages/mingw-w64-x86_64-hdf5). Explicitly installing an older version of HDF5 does not seem to be possible, as only the most recent packages are provided by MSYS2 (https://stackoverflow.com/questions/33969803/how-to-obtain-older-versions-of-packages-using-msys2).
I already opened an issue on the MSYS2 packages about this (https://github.com/msys2/MINGW-packages/issues/29009), but have not found a workaround so far. I tried to manually rebuild the MSYS2 package, which worked, but also there changing the HDF5 version it depends on does not work. Building h5py with pip fails, because the hdf5 development libraries are not available to me on MSYS2 as far as I could tell. While this should be possible, it probably requires more setup on my end that I have not done yet.
What is the best course of action here regarding that h5py is a core component of ARTIQ and version changes like this are likely to happen in the future?