Debian更新报错 TypeError: ‘NoneType’ object is not callable

Exception ignored in:.remove at 0x76125420>Traceback (most recent call last): File “/usr/lib/python3.5/weakref.py”, line 117, in removeTypeError: ‘NoneType’ object is not callableException ignored in:.remove at 0x76125420>

Traceback (most recent call last):

File “/usr/lib/python3.5/weakref.py”, line 117, in remove

TypeError: ‘NoneType’ object is not callable

 

原因:

python3.5的bug

修复补丁

https://github.com/python/cpython/commit/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6.patch

手动处理方案:

找到Py3.5的weakref.py文件
-        def remove(wr, selfref=ref(self)):
+        def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):
-                    _remove_dead_weakref(d, wr.key)
+                    _atomic_removal(d, wr.key)
By |2018-10-26T17:11:19+00:002018-10-26|Linux|Debian更新报错 TypeError: ‘NoneType’ object is not callable已关闭评论