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
Similar Posts:
- How to Solve Python TypeError: ‘list’ object is not callable
- TypeError: ‘unicode’ object is not callable
- TypeError: ‘unicode’ object is not callable
- AttributeError: ‘NoneType’ object has no attribute ‘split’ [How to Solve]
- Fast locating nonetype ‘object is not Iterable in Python
- TypeError: cannot unpack non-iterable NoneType object
- [Solved] TypeError: ‘Collection’ object is not callable. If you meant to call the ‘authenticate’ method on a ‘Database’ object it is failing because no such method exists.
- How to Solve TypeError: object() takes no parameters
- Python uses decorator and reports error typeerror: ‘nonetype’ object is not callable ‘
- [Solved] Python TypeError: ‘int’ object is not callable