Ankündigung

Einklappen
Keine Ankündigung bisher.

Fehler /usr/lib/python3.5/weakref.py", line 117, in remove

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Fehler /usr/lib/python3.5/weakref.py", line 117, in remove

    Nach einem Phyton-Upgrade habe ich beim Neustart folgenden Absturz.
    Nur
    /usr/local/smarthome/bin/smarthome.py -s und
    /usr/local/smarthome/bin/smarthome.py -stop erlaubt einen neuen Start

    Code:
    [smarthome@SmartHomeNG ~]$ /usr/local/smarthome/bin/smarthome.py --stop
     [smarthome@SmartHomeNG ~]$ /usr/local/smarthome/bin/smarthome.py --start
    2019-04-06 14:53:46 WARNING  smarthome    Main         --------------------   Init SmartHomeNG 1.5.1.master (d2a248c0)   -------------------- -- smarthome.py:__init__:241
    2019-04-06 14:53:46 WARNING  smarthome    Main         Running in Python interpreter 'v3.5.3 final' on linux platform -- smarthome.py:__init__:242
    Daemon PID 11667
    Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x764123d8>
    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 0x764123d8>
    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 0x764123d8>
    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 0x764123d8>
    Traceback (most recent call last):
      File "/usr/lib/python3.5/weakref.py", line 117, in remove
    TypeError: 'NoneType' object is not callable
     [smarthome@SmartHomeNG ~]$
    Ist das Problem bekannt?

    #2
    ist ein Python Problem - gibt es auch bei OpenMediaVault

    Lösung (aus dem Internet kopiert)

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

    richtiger Beitrag:
    Code:
    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.

    Kommentar

    Lädt...
    X