To assist reproducing bugs, please include the following:
- Operating System: CentOS 8
- Where Python was acquired: Anaconda
- The full traceback/stack trace shown (if it appears)
- Python, h5py and HDF5 version: see below
h5py.version.info
contains the needed versions, which can be displayed by
python -c 'import h5py; print(h5py.version.info)'
>>> import h5py
>>> print(h5py.version.info)
Summary of the h5py configuration
---------------------------------
h5py 3.9.0
HDF5 1.12.2
Python 3.11.4 (main, Jul 5 2023, 14:15:25) [GCC 11.2.0]
sys.platform linux
sys.maxsize 9223372036854775807
numpy 1.25.0
cython (built with) 0.29.35
numpy (built against) 1.23.2
HDF5 (built against) 1.12.2
where python
should be substituted for the path to python used to install
h5py
with.
I am trying to use the h5py version with the swmr feature.
After a read access with swmr=True as argument, the following error shows up
[Errno 11] Unable to open file (unable to lock file, errno = 11, error message = ‘Resource temporarily unavailable’)
And there are no way to continue to append to that file, even without closing the file. When i open for append, i specify hf.swmr_mode=True, as detailed in the documentation.
If might be useful, this is the function for appending, while for reading, i use something such
import h5py
percorso = f"/path/to/file.h5"
with h5py.File(percorso, 'r', libver='latest', swmr=True) as hf:
# Do something
print(hf.keys())
Once I run the previous code, it become IMPOSSIBLE to append to the same file.
Does someone has some ideas or suggestion?
Thanks in advance
Best regards
Stefano