python文件运行报错: 'NoneType' object has no attribute 'TF_DeleteStatus'
2017-09-08 15:57
1246 查看
目录
问题描述
解决办法
tensorflow 1.3 CPU
编译python文件时,报错:’NoneType’ object has no attribute ‘TF_DeleteStatus’,如下所示:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201909/10/7dce29561110a19cde2389c2cdc3f9f7)
文件夹删除后,就可以正常运行了。
问题描述
解决办法
问题描述
python 3.5tensorflow 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__文件夹,如下图:
文件夹删除后,就可以正常运行了。
相关文章推荐
- python图像处理问题AttributeError: 'NoneType' object has no attribute 'shape'
- 【转载】C#调用python文件时出现'module' object has no attribute '_getframe'
- Python: Attribute Error - 'NoneType' object has no attribute 'something'
- python运行不了 AttributeError: module object has no attribute getdefaultlocale
- python提示AttributeError: 'NoneType' object has no attribute 'append'
- 用python爬github上星级排名前列的项目报错AttributeError: 'NoneType' object has no attribute 'decode'
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- Python报错之:AttributeError: 'NoneType' object has no attribute 'seq'
- 使用sae-python-dev本地运行web.py项目出现module object has no attribute InteractiveInterpreter
- TensorBoard tf.summary.merge_all() AttributeError: 'NoneType' object has no attribute 'bucket 错误
- Python3.4 pandas 在IDLE出现AttributeError: 'NoneType' object has no attribute 'fileno'
- 关于python里运行出现'module' object has no attribute 'xxxx'等问题解决方法
- python运行不了 AttributeError: module object has no attribute getdefaultlocale
- self.status.split(' ',1)[0], self.bytes_sent 'NoneType' object has no attribute 'split'
- Python基础学习-'module' object has no attribute 'urlopen'解决方法
- AttributeError: 'NoneType' object has no attribute 'startswith'
- 【python】AttributeError: 'module' object has no attribute 'HTTPSConnection'
- [数字图像处理实验][python+opencv]'module' object has no attribute 'cv'
- AttributeError: 'NoneType' object has no attribute 'recovery'
- AttributeError: 'NoneType' object has no attribute 'astyp