Answer the question
In order to leave comments, you need to log in
Error with python on django migrations?
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fe1cf222400>
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 0x7fe1cf222400>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Answer the question
In order to leave comments, you need to log in
Migration has nothing to do with it.
https://bugs.python.org/issue29519
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=...
This seems to be fixable.
In short open /usr/lib/python3.5/weakref.py and change line 109 to:
def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):
And line 117 to:
_atomic_removal(d, wr.key)
Note you need to do this with spaces, not tabs as this will cause other errors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question