problem
After installing OMV (ver. 4.1.22), I intend to install some software with apt
, and then I encounter the following error:
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f81db3bc730>
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 0x7f81db3bc730>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
solution
After a search, Google found a solution on GitHub:
First open the /usr/lib/python3.5/weakref.py
file:
vim /usr/lib/python3.5/weakref.py
Then change line 109
to
def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):
Line 117
should read
_atomic_removal(d, wr.key)
WQ
save it, and then try apt
, and the problem is solved