BossSensor icon indicating copy to clipboard operation
BossSensor copied to clipboard

IOError: Unable to create file

Open wei123021 opened this issue 7 years ago • 3 comments

Model Saved. Traceback (most recent call last): File "boss_train.py", line 180, in model.save() File "boss_train.py", line 147, in save self.model.save(file_path) File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 2423, in save save_model(self, filepath, overwrite) File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 48, in save_model f = h5py.File(filepath, 'w') File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py", line 271, in init fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr) File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py", line 107, 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 (/tmp/pip-nCYoKW-build/h5py/_objects.c:2840) File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-nCYoKW-build/h5py/_objects.c:2798) File "h5py/h5f.pyx", line 98, in h5py.h5f.create (/tmp/pip-nCYoKW-build/h5py/h5f.c:2284) IOError: Unable to create file (Unable to open file: name = './store/model.h5', errno = 2, error message = 'no such file or directory', flags = 13, o_flags = 242)

wei123021 avatar Apr 06 '17 12:04 wei123021

workaround: manually create ./store directory by yourself

lionel126 avatar Apr 09 '17 13:04 lionel126

i have create the file manually but the same error is coming.can anyone solve this?

vikash512 avatar Sep 02 '17 06:09 vikash512

Anyone able to solve this? I am having the same issue. The folder is already present in the same directory.

misbah4064 avatar Feb 25 '18 09:02 misbah4064