报错:h5py OSError: Unable to open file (unable to lock file, errno = 11, error message = ‘Resource temporarily unavailable’)
原因: 打开h5文件没有关闭,下次又再次打开这个文件,就会出错。
解决方法: 不要使用

h5 = h5py.File('xxx','r')

的格式,因为这个格式每次结束都要close(),有时候会忘记,建议使用

with h5py.File('xxx','r') as h5:xxxx

这种方式不需要close()

h5py OSError: Unable to open file (unable to lock file, errno = 11, error message = ‘Resource tempor相关推荐

  1. (OSError: Unable to open file (unable to open file: name = ‘model_3.h5’, errno = 2, error message =

    错误: OSError: Unable to open file (unable to open file: name = 'model_3.h5'', errno = 2, error messag ...

  2. Git报错:fatal: Unable to create ‘xx/.git/index.lock‘: File exis

    一 报错:fatal: Unable to create 'xx/.git/index.lock': File exis 如下: $ git commit fatal: Unable to creat ...

  3. karas报错filename = 'fine_tuned_net.h5', file descriptor = 24, errno = 28, error message = 'No space l

    karas epochs=50,在第14时报错 File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrap ...

  4. 解决git 提交出现这个错误fatal: Unable to create ‘project_path/.git/index.lock‘: File exists.

    解决办法,输入命令: rm -f ./.git/index.lock 即可解决

  5. pycharm中的文件路径错误问题:FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = ‘./D

    记录一下在读取数据遇到的一个问题: FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = './D ...

  6. 导入keras训练好的模型报错解决OSError: Unable to open file (unable to open file: name = ‘model_3.h5’)

    导入keras训练好的模型报错解决) 开心撒花 切入正题 开心撒花 第一次写博客,想分享记录一下自己写程序.跑程序过程中的问题和收获.哈哈哈哈 开心. Markdown编辑器 第一次用感觉很友好啊.喜 ...

  7. 如何解决:OSError: Unable to create file (unable to open file: name = ‘. et_classification.h5‘, errno = 2

    报错:OSError: Unable to create file (unable to open file: name = '. et_classification.h5', errno = 22, ...

  8. 解决:关于Git无法提交 index.lock File exists的问题

    问题 今天提交代码时,在一次提交,莫名其妙没成功后,再次用git commit -a命令时,出现以下错误,无论是用git还是TortoiseGit等其他客户端都会出现以下这个问题.. 错误日志 $ g ...

  9. 已解决:导入keras(tf)训练好的模型报错解决OSError: Unable to open file (unable to open file: name = ‘model_3.h5’)

    1.场景 导入keras训练好的模型报错解决 OSError: Unable to open file (unable to open file: name = 'model_3.h5') 2.解决方 ...

最新文章

  1. 线上应用故障排查之二:高内存占用
  2. Understanding Unix/Linux Programming-终端控制和信号
  3. 洛谷 P1149 火柴棒等式
  4. 《Qt on Android核心编程》夹
  5. 【Python】字典(Dictionary) items()方法
  6. 个人工作总结05(第二次冲刺)
  7. java程序员面试经历(不忘初心,永不放弃,放得始终)。
  8. 通过扫码打开IOS的App Store下载APP(Android版暂时没找到解决方法)
  9. CSS3笔记之基础篇(一)边框
  10. 统计学习笔记(4) 线性回归(1)
  11. jeecg自定义按钮使用exp属性不起作用
  12. 三级网络-不单单是学知识
  13. 图形界限命令在命令行输入_CAD骚操作,恭喜你又学会了几个重要的命令
  14. sql server表分区_介绍分区表SQL Server增量统计信息
  15. 【Linux私房菜】第四期——管理
  16. rational rose的下载和安装教程
  17. 关于atmel的sam9g45无法连接到sam ba以及手动烧写系统时的问题
  18. 设计模式-工厂模式(学习)
  19. linux检查新增文件,linux查看文件内容
  20. IntelliJ IDEA 项目相关的几个重要概念介绍

热门文章

  1. snownlp学习-微博情感分析
  2. ASCAT数据:风向、风速
  3. 微信小游戏一笔画通关代码---------深度优先图搜问题
  4. SHT11的C语言,用SHT11 构成的温湿度监测系统
  5. 学海领航c语言答案,学海领航语文单元测试卷答案.doc
  6. Vmware虚拟磁盘文件解密
  7. php鼠标悬浮显示,CSS3实现鼠标悬停显示扩展内容
  8. 机器学习算法系列(六)- 弹性网络回归算法(Elastic Net Regression Algorithm)
  9. 薄膜表面检测仪帮助企业节省人力保障产品质量
  10. win10 IE自动跳转到EDGE的解决办法(注册表)