【发布时间】:2010-12-17 05:51:31
【问题描述】:
我有一个使用 paramiko 的自动化流程并出现此错误:
Exception in thread Thread-1 (most likely raised during interpreter
shutdown)
....
....
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'error'
我知道这是清理/线程的问题,但我不知道如何解决。
我有最新版本(1.7.6),根据this thread解决了,直接下载代码还是报错。
在winxp/win2003下的Python 2.5/2.6出现故障。
我在__del__ 析构函数中关闭了连接,然后在脚本结束前关闭它,但这些都不起作用。还有更多,使用这个之前发生的错误,所以可能与解释器关闭无关??
【问题讨论】: