question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OSError: Unable to open file (unable to lock file, errno = 37, error message = 'No locks available')

See original GitHub issue

i got an error like title,i try to use HDF5_USE_FILE_LOCKING=FALSE in bashrc file,but it doesn’t work,what should i do? my code is following that:

import h5py
h5py.File('X.h5','r')

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:32 (7 by maintainers)

github_iconTop GitHub Comments

15reactions
anjandashcommented, Apr 9, 2020

Has anyone found a solution to this? Initially `HDF5_USE_FILE_LOCKING=‘FALSE’ worked but for some reason the error has returned

This worked for me. I set the environment variable HDF5_USE_FILE_LOCKING to ‘FALSE’.

Added the following line to the .bashrc file and saved it: export HDF5_USE_FILE_LOCKING=‘FALSE’

$ cd ~ $ nano .bashrc
(write in the .bashrc file => export HDF5_USE_FILE_LOCKING=‘FALSE’) $ source .bashrc

12reactions
mfournarakiscommented, Apr 5, 2019

Has anyone found a solution to this? Initially `HDF5_USE_FILE_LOCKING=‘FALSE’ worked but for some reason the error has returned

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while accessing .hdf5 file, shows error “OSError: Unable ...
Solutions: The error could be solved for opening .hdf5 files as below: file= h5py.File(file_path,'r'). close the files using file.close() or ...
Read more >
linux - What does 'no locks available' mean? - Server Fault
The NFS file system where the repository is stored may be full; The lock daemon (lockd) may not be running on the NFS...
Read more >
Operations on a File System Fail With Error: 37: No Locks ...
Symptom: Operations on the file system sometimes fail with Linux-x86_64 Error: 37: No locks available . Cause: The rpc-statd service and lockd ......
Read more >
OSError: Unable to open fle (unable to lock file, errno = 37 ...
OSError : Unable to open file (unable to lock file, errno = 37, error message = 'No locks available')在使用python读取h5文件时出现以上错误这一 ...
Read more >
I cannot open my h5 file - HDF5 - HDF Forum
File (fpath, "r") But I get this error message: OSError: Unable to open file (file signature not found) It has worked before, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found