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 #7

Open
weixiaolian21 opened this issue May 17, 2018 · 1 comment
Open

IOError: Unable to create file #7

weixiaolian21 opened this issue May 17, 2018 · 1 comment

Comments

@weixiaolian21
Copy link

hello,when i run this code,the following error encountered. I don`t konw why.
2048/2055 [============================>.] - ETA: 0s - loss: 4.8819 - acc: 0.2090Epoch 00000: val_loss improved from inf to 4.92003, saving model to ./models/Indian_best_RES_3D_SS4_10_1.hdf5
Traceback (most recent call last):
File "SSRN_IN.py", line 191, in
nb_epoch=nb_epoch, shuffle=True, callbacks=[earlyStopping6, saveBestModel6])
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-packages/keras/engine/training.py", line 1485, in fit
initial_epoch=initial_epoch)
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-packages/keras/engine/training.py", line 1160, in _fit_loop
callbacks.on_epoch_end(epoch, epoch_logs)
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-packages/keras/callbacks.py", line 75, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-packages/keras/callbacks.py", line 400, in on_epoch_end
self.model.save(filepath, overwrite=True)
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-packages/keras/engine/topology.py", line 2416, in save
save_model(self, filepath, overwrite)
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-packages/keras/models.py", line 96, in save_model
f = h5py.File(filepath, 'w')
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-packages/h5py/_hl/files.py", line 271, in init
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "/home/zhangxh/anaconda3/envs/py2/lib/python2.7/site-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
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 98, in h5py.h5f.create
IOError: Unable to create file (File locking disabled on this file system (use hdf5_use_file_locking environment variable to override), errno = 38, error message = 'function not implemented')

@zilongzhong
Copy link
Owner

It seems that this is an environment configuration problem. Make sure you set the conda environment exactly the same as this repo. For example, I use Anaconda 2 instead of Anaconda 3.

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

2 participants