I’m trying to work with hdf5 files for ml, and I keep getting this error whenever I create or open an hdf5 file, I’m using a miniconda environment in vscode on windows btw.
import h5py
hdf5_filepath = 'filepath'
h = h5py.File(hdf5_filepath, 'w')
OSError: [Errno 0] Unable to synchronously create file (unable to lock file, errno = 0, error message = 'No error', Win32 GetLastError() = 1)
Closest thing I got on the internet was this but didn’t work:
import os os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
Also tried uninstalling and reinstalling h5py package on conda but that didn’t work.
msour15 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.