The current released version of hdf5storage is not working with Python 3.12+ (and the latest main on GitHub doesn't work with numpy 2), so can't use chaosmagpy on Python 3.12+. hdf5storage does not seem to be well maintained, so it's probably best to switch to an alternative (if there is one?).