I am using google collaboratory to open the .h5 file using the h5py library. The attached screenshot contains the commands that I used to get the details of the h5 file. When I am trying to convert the dataset in hdf5 to NumPy array, using the command “phrase_numpy = np.array(phrase)”, where “phrase” is the dataset in hdf5, I am getting an OS error as attached. Could someone help me with resolving this issue?
OK, that means that the dataset is not compressed. I’m not sure why that would trigger the exception. (Why look for plugins that we don’t need?) It could be an error in the way the environment (“google collaboratory”) is set up. How big is your file? Can you try running your notebook in HDF Lab?
There’re other exceptions farther down:
AttributeError: `OSError` object has no attribute `_render_traceback_`
OSError: [Error 107] Transport endpoint is not connected
I’m not sure what that is about. These errors have nothing to do with HDF5 or h5py.
I think trying HDF Lab is your best bet, at least we can help your with issues you might run into.