python文件运行报错: 'NoneType' object has no attribute 'TF_DeleteStatus'
来源:互联网 发布:移动的网络机顶盒 编辑:程序博客网 时间:2024/06/16 13:48
目录
- 问题描述
- 解决办法
问题描述
- python 3.5
- tensorflow 1.3 CPU
编译python文件时,报错:’NoneType’ object has no attribute ‘TF_DeleteStatus’,如下所示:
Exception ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x1202ad9b0>>Traceback (most recent call last): File "/Applications/anaconda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 581, in __del__AttributeError: 'NoneType' object has no attribute 'TF_DeleteStatus'
解决办法
这是因为没有删除之前编译时生成的.pyc文件,需要删除整个__pycache__
文件夹,如下图:
文件夹删除后,就可以正常运行了。
阅读全文
1 1
- python文件运行报错: 'NoneType' object has no attribute 'TF_DeleteStatus'
- django 报错'NoneType' object has no attribute 'strftime'
- python : 'NoneType' object has no attribute 'recv'
- Python: Attribute Error - 'NoneType' object has no attribute 'something'
- 用python爬github上星级排名前列的项目报错AttributeError: 'NoneType' object has no attribute 'decode'
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- [Python][转]Exception AttributeError: "'NoneType' object has no attribute
- python PIL bug: 'NoneType' object has no attribute 'bands' (解决)
- python使用PIL库报错,'NoneType' object has no attribute 'bands'
- python提示AttributeError: 'NoneType' object has no attribute 'append'
- openstack keystone token-get报错'NoneType' object has no attribute 'has_service_catalog'
- AttributeError: ‘NoneType’ object has no attribute ‘clone’
- AttributeError: 'NoneType' object has no attribute 'clone'
- AttributeError: 'NoneType' object has no attribute
- AttributeError: 'NoneType' object has no attribute 'startswith'
- Python 保存数组至.mat文件,报错:AttributeError: 'numpy.ndarray' object has no attribute 'items'
- python爬虫时 AttributeError: 'NoneType' object has no attribute 'children'错误提示
- Android的okhttp,OkGo,OkHttpUtils自定义CallBack的JsonCallback自定义
- 左链接 数据变少 sql语句
- js中如何将arguments伪数组转为数组
- 附1.pyton中的range()函数
- 1275:小明A+B(2)
- python文件运行报错: 'NoneType' object has no attribute 'TF_DeleteStatus'
- loj #2038. 「SHOI2015」超能粒子炮・改(组合数学)
- maven运行项目出现编译环境的错误
- dommemstat
- MySQL修改表
- React虚拟DOM浅析
- css3实现hover特效----案例
- java中Serializable与Parcelable的使用
- 顶住学长20分钟的进攻?刚入学就玩这么大?