Closed mkitti closed 1 year ago
The observation that the libaec builds on Windows appear to be working in https://github.com/zarr-developers/numcodecs/pull/422 suggests the problem is mostly with the cmake build system.
A small patch similar to the MSYS2 patch may be successful. Alternatively, we wait for upstream which should have a patch release near the beginning of May 2023 according to the HDF Group release schedule.
Would suggest trying to drop the comment and selector here and bump the build/number
Should add currently there are warnings like this on Windows:
CMake Warning:
-- Build files have been written to: D:/bld/hdf5_1675776169379/work/build
Manually-specified variables were not used by the project:
SZIP_INCLUDE_DIR
SZIP_LIBRARY
So lines like these probably need to be reworked or dropped:
Steps to reproduce the problem.
>>> import h5py
>>> with h5py.File("test.h5", "w") as h5f:
... ds = h5f.create_dataset("test", (1024, 1024), chunks=(16,16), dtype="uint16", compression="szip", compression_opts=('ec',32))
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "C:\Users\_\.julia\conda\3\envs\h5py_hdf5_test\Lib\site-packages\h5py\_hl\group.py", line 183, in create_dataset
dsid = dataset.make_new_dset(group, shape, dtype, data, name, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\_\.julia\conda\3\envs\h5py_hdf5_test\Lib\site-packages\h5py\_hl\dataset.py", line 106, in make_new_dset
dcpl = filters.fill_dcpl(
^^^^^^^^^^^^^^^^^^
File "C:\Users\_\.julia\conda\3\envs\h5py_hdf5_test\Lib\site-packages\h5py\_hl\filters.py", line 185, in fill_dcpl
raise ValueError('Compression filter "%s" is unavailable' % compression)
ValueError: Compression filter "szip" is unavailable
>>> h5py.h5z.filter_avail(4)
False
Solution to issue cannot be found in the documentation.
Issue
Refiling of https://github.com/conda-forge/h5py-feedstock/issues/63 to here
This is a known issue from https://github.com/conda-forge/hdf5-feedstock/pull/179#issuecomment-1207396346 and the residual of #120 .
I'm noting that MSYS2 has a patch that possibly addresses this issue. https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-hdf5/hdf5-fix-find-szip.patch https://packages.msys2.org/base/mingw-w64-hdf5
Upstream appears to have fixed this issue. https://github.com/HDFGroup/hdf5/pull/2492
Installed packages
Environment info