When we try to open .hdf5 files using import h5py as
file=h5py.open(".../f.hdf5",'r'),
Shows following error:
h5py/h5f.pyx in h5py.h5f.open()
OSError: Unable to open file (unable to lock file, errno = 11, error message = 'Resource temporarily unavailable')
Solutions: provided in the answer