File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "C:\anaconda3\envs\dsec\lib\site-packages\h5py\_hl\dataset.py", line 1015, in __array__
self.read_direct(arr)
File "C:\anaconda3\envs\dsec\lib\site-packages\h5py\_hl\dataset.py", line 976, in read_direct
self.id.read(mspace, fspace, dest, dxpl=self._dxpl)
File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5d.pyx", line 192, in h5py.h5d.DatasetID.read
File "h5py\_proxy.pyx", line 112, in h5py._proxy.dset_rw
OSError: Can't read data (can't open directory)
解决:
import hdf5plugin
os.environ["HDF5_PLUGIN_PATH"] = hdf5plugin.PLUGINS_PATH