You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
h5py doesn't have permission to write files in python3.7.
To Reproduce
So I ran the gen_train() command and it certainly does try to generate 1000 signals but I get this error at the end.
Made waveform 999/1000
Generated: ./training_sets_3det_9par_256Hz/tset_tot-1000_split-1000/data_1000-1000.h5py ...
Traceback (most recent call last):
File "", line 1, in
File "/home/chrism/vitamin_b/vitamin_b/run_vitamin.py", line 461, in gen_train
hf = h5py.File('%s/data_%d-%d.h5py' % (params['train_set_dir'],(i+params['tset_split']),params['tot_dataset_size']), 'w')
File "/home/chrism/vitamin_b/myenv/lib/python3.7/site-packages/h5py/_hl/files.py", line 394, in init
swmr=swmr)
File "/home/chrism/vitamin_b/myenv/lib/python3.7/site-packages/h5py/_hl/files.py", line 176, in make_fid
fid = h5f.create(name, h5f.ACC_TRUNC, fapl=fapl, fcpl=fcpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 105, in h5py.h5f.create
OSError: Unable to create file (unable to lock file, errno = 5, error message = 'Input/output error’)
Something hard coded won’t allow a general user to run this.
The text was updated successfully, but these errors were encountered:
I think this bug could also be due to a not properly closed file. Not sure if it is still around once the machine is restarted. To avoid issues like these one can write to HDF5 files using the with statements. It always closes the file properly, even in the event that the code errors out during the writing process.
withh5py.File(file_path, 'w') ashf:
#Write to file like before
Describe the bug
h5py doesn't have permission to write files in python3.7.
To Reproduce
So I ran the gen_train() command and it certainly does try to generate 1000 signals but I get this error at the end.
Made waveform 999/1000
Generated: ./training_sets_3det_9par_256Hz/tset_tot-1000_split-1000/data_1000-1000.h5py ...
Traceback (most recent call last):
File "", line 1, in
File "/home/chrism/vitamin_b/vitamin_b/run_vitamin.py", line 461, in gen_train
hf = h5py.File('%s/data_%d-%d.h5py' % (params['train_set_dir'],(i+params['tset_split']),params['tot_dataset_size']), 'w')
File "/home/chrism/vitamin_b/myenv/lib/python3.7/site-packages/h5py/_hl/files.py", line 394, in init
swmr=swmr)
File "/home/chrism/vitamin_b/myenv/lib/python3.7/site-packages/h5py/_hl/files.py", line 176, in make_fid
fid = h5f.create(name, h5f.ACC_TRUNC, fapl=fapl, fcpl=fcpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 105, in h5py.h5f.create
OSError: Unable to create file (unable to lock file, errno = 5, error message = 'Input/output error’)
Something hard coded won’t allow a general user to run this.
The text was updated successfully, but these errors were encountered: