Openmediavault Fix #29519: weakref spewing exceptions during interp finalization

Hay un bug en Python por el que al realizar una actualización de índices en Openmediavault con "apt update" o "apt-get update" se muestran los siguientes errores:
Exception ignored in: .remove at 0x7f7f749447b8>
 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: .remove at 0x7f7f749447b8>
 Traceback (most recent call last):
   File "/usr/lib/python3.5/weakref.py", line 117, in remove
 TypeError: 'NoneType' object is not callable

La solución es editar el fichero /usr/lib/python3.5/weakref.py y reemplazar:

def remove(wr, selfref=ref(self)):

Con:

def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):

Y reemplazar:

_remove_dead_weakref(d, wr.key)

Con:

_atomic_removal(d, wr.key)

Fuente: https://github.com/python/cpython/commit/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6

Be the first to comment

Por favor acceder para comentar.