Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOError: Unable to create file #21

Open
wei123021 opened this issue Apr 6, 2017 · 3 comments
Open

IOError: Unable to create file #21

wei123021 opened this issue Apr 6, 2017 · 3 comments

Comments

@wei123021
Copy link

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)

@lionel126
Copy link

lionel126 commented Apr 9, 2017

workaround: manually create ./store directory by yourself

@vikash512
Copy link

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

@misbah4064
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants