@bQ1

Ошибка с python при миграциях django?

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


Что за фигня?
  • Вопрос задан
  • 505 просмотров
Решения вопроса 1
deepblack
@deepblack
Миграции тут ни при чем.

https://bugs.python.org/issue29519
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=...

spoiler

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.

https://github.com/ayufan-rock64/linux-build/issues/136

Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы