Hi,
I implemented a VOL using HDF5 1.14.0 and it works well for C++. Now I’m trying to call it by h5py lib. When I’m trying to open a dataset using dset = f['test']
. It gives an error “RuntimeError: Can’t retrieve file id (can’t wrap object)”.
It seems the problems lie in the VOL functions of H5VLobject_open() and H5VLobject_get(). From my understanding, these two functions may help recognize the extra info of opened objects (e.g. dataset or group) as h5py opens objects implicitly (not like H5DOpen in C++). So I simply passed the type H5I_DATASET
to H5VLobject_open’s *opened_type
and passed the name of dataset into H5VLobject_get’s H5VL_object_get_args_t *args
. But it still doesn’t solve the problem.