Ankündigung

Einklappen
Keine Ankündigung bisher.

Connection polling failed: release unlocked lock

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

    Connection polling failed: release unlocked lock


    Hallo miteinander,

    die SmartVisu meiner Hütte wird langsam rund.
    2 Probleme habe ich jedoch immer ausgeklammert, da sie mich bei der Entwicklung nicht störten und ich auch keine Lösung gefunden habe.
    Jetzt zum Finale sollten diese Probleme aber noch raus und erbiite Eure Hilde.
    Beiliegend ein Debug, reduziert auf die kritischen Stellen.

    Ich arbeite von der IP xxx.xxx.xxx.32.

    1. Problem.
    Connection polling failed: release unlocked lock

    2. Problem
    sh.smarthome.runtime(td2str(runtime))
    AttributeError: 'SmartHome' object has no attribute 'smarthome'

    #2
    Zitat von schloessl Beitrag anzeigen
    Hallo miteinander,

    die SmartVisu meiner Hütte wird langsam rund.
    2 Probleme habe ich jedoch immer ausgeklammert, da sie mich bei der Entwicklung nicht störten und ich auch keine Lösung gefunden habe.
    Jetzt zum Finale sollten diese Probleme aber noch raus und erbiite Eure Hilde.
    Beiliegend ein Debug, reduziert auf die kritischen Stellen.

    Ich arbeite von der IP xxx.xxx.xxx.32.

    1. Problem.
    Connection polling failed: release unlocked lock

    2. Problem
    sh.smarthome.runtime(td2str(runtime))
    AttributeError: 'SmartHome' object has no attribute 'smarthome'
    Anhang mit DEBUG und *.conf *.py ist jetzs angehängt

    Danke für jede Hilfe!

    Wolfgang
    Angehängte Dateien
    Zuletzt geändert von schloessl; 01.04.2015, 17:47.

    Kommentar


      #3
      Ich antworte hier einmal selbst:

      das 1. Problem ist in einem anderen Supportforum beantwortet"

      https://knx-user-forum.de/forum/suppo...polling-failed

      Jetzt bleibt mir noch das 2. Problem!

      Code:
      2015-04-03 16:26:22,977 DEBUG    Scheduler    1w-sen next time: 2015-04-03 16:31:22+02:00 -- scheduler.py:_next_time:289
      2015-04-03 16:26:32,046 ERROR    System       Logic: System, File: /usr/local/smarthome/logics/system.py, Line: 12, Method: <module>, Exception: 'SmartHome' object has no attribute 'smarthome' -- scheduler.py:_task:334
      Traceback (most recent call last):
        File "/usr/local/smarthome/lib/scheduler.py", line 327, in _task
          exec(obj.bytecode)
        File "/usr/local/smarthome/logics/system.py", line 12, in <module>
          sh.smarthome.runtime(td2str(runtime))
      AttributeError: 'SmartHome' object has no attribute 'smarthome'
      Die entsprechenden config-Dateien stehen im Zip zuvor.

      Kann mir bitte jemand einen Tipp geben?

      Danke für die Hilfe
      Wol

      Kommentar


        #4
        Hallo,
        probiere doch mal sh.runtime(....); Unter sh sollte es eigentlich smarthome nicht noch ein zweites mal geben !
        Michel

        Kommentar


          #5
          Hallo Michel,

          danke für Deine Antwort!

          Ich habs probiert! Leider ohne Erfolg.

          Code:
          2015-04-05 14:40:16,281 ERROR    System       Logic: System, File: /usr/local/smarthome/logics/system.py, Line: 13, Method: <module>, Exception: 'SmartHome' object has no attribute 'runtime' -- scheduler.py:_task:334
          Traceback (most recent call last):
            File "/usr/local/smarthome/lib/scheduler.py", line 327, in _task
              exec(obj.bytecode)
            File "/usr/local/smarthome/logics/system.py", line 13, in <module>
              sh.runtime(td2str(runtime))
              AttributeError: 'SmartHome' object has no attribute 'runtime'
          ****************************************************************************************
          #cat logics/system.py
          def td2str(td):
              hours, seconds = divmod(td.seconds, 3600)
              minutes, seconds = divmod(seconds, 60)
              if td.days:
                  return "{0}d {1}h {2}m".format(td.days, hours, minutes)
              else:
                  return "{0}h {1}m".format(hours, minutes)
          
          # Runtime
          runtime = sh.tools.runtime()
          #sh.smarthome.runtime(td2str(runtime))
          sh.runtime(td2str(runtime))
          **********************************************************************************************    
              
          AttributeError: 'SmartHome' object has no attribute 'runtime'
          
          ****************************************************************************************************
          2015-04-05 14:57:39,270 ERROR    System       Logic: System, File: /usr/local/smarthome/logics/system.py, Line: 13, Method: <module>, Exception: 'Item' object has no attribute 'runtime' -- scheduler.py:_task:334
          Traceback (most recent call last):
            File "/usr/local/smarthome/lib/scheduler.py", line 327, in _task
              exec(obj.bytecode)
            File "/usr/local/smarthome/logics/system.py", line 13, in <module>
              sh.system.runtime(td2str(runtime))
          AttributeError: 'Item' object has no attribute 'runtime'
          Jetzt habe ich einfach die Aufrufe "runtime" und "uptime" auskommentiert. Fehler ist weg und trotzdem werden die Daten in der smarHome.Py richtig angezeigt!!

          Für mich erst einmal "Problem gelöst"!

          Ich habe unter smarthome master im Github nachgesehen. Hier stehen die gleichen Daten drin.

          Also hoffe ich, der Fehler tritt nicht bei allen anderen auf. Ich sehe aber leider mein Problem oder die Lösung nicht.

          (außer auskommentieren)

          Danke für den Tipp.
          Noch einen sonnigen Feiertag!
          Wolfgang

          Kommentar

          Lädt...
          X