Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fd0620f2730>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fd0620f2730>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f292a5527b8>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f292a5527b8>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
sudo apt update
cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 1.1.1.1
vim /usr/lib/python3.5/weakref.py
109
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)
作者:qcsunny
链接:https://www.jianshu.com/p/a4162cf0d2a5
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
https://www.jianshu.com/p/a4162cf0d2a5
https://www.mobibrw.com/2017/9800/comment-page-1