Ankündigung

Einklappen
Keine Ankündigung bisher.

Fehler beim Start von sh.py relevant? ('module' object has no attribute 'quote')

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

    Fehler beim Start von sh.py relevant? ('module' object has no attribute 'quote')

    Hallo,

    ich versuche gerade, mich in smarthome.py (und danach auch SmartVisu) einzuarbeiten.

    Das Setup habe ich auf Debian 7.8 durchgeführt. Das einzige Plugin ist KNX (verbindet sich mit dem eibd, den ich für andere Visu / Skripte schon nutze); es sind keine Logiken konfiguriert. Die items beinhalten eine Baumstruktur der Hausinstallation (scheint mir hier erstmal nicht relevant, kann ich bei Bedarf nachliefern - lang!).

    Wenn ich den Server mit smarthome.py -d starte, bekomme ich folgende Ausgabe:

    Code:
    2015-06-05 23:03:12,353 INFO Main Start SmartHome.py 1.0 -- smarthome.py:__init__:231
    2015-06-05 23:03:12,354 DEBUG Main Python 3.2.3 -- smarthome.py:__init__:232
    2015-06-05 23:03:12,355 INFO Main Init Scheduler -- scheduler.py:__init__:86
    2015-06-05 23:03:12,357 DEBUG Scheduler creating 5 workers -- scheduler.py:run:93
    2015-06-05 23:03:12,357 INFO Main Init Plugins -- smarthome.py:start:274
    2015-06-05 23:03:12,363 DEBUG Main Plugin: knx -- plugin.py:__init__:43
    2015-06-05 23:03:12,370 DEBUG Main KNX time next time: 2015-06-05 23:03:26+02:00 -- scheduler.py:_next_time:289
    2015-06-05 23:03:12,372 INFO Main Init Items -- smarthome.py:start:280
    2015-06-05 23:03:12,385 DEBUG Main Item env.core: no type specified. -- item.py:__init__:242
    2015-06-05 23:03:12,395 DEBUG Main Item env.location: no type specified. -- item.py:__init__:242
    2015-06-05 23:03:12,400 DEBUG Main Item env.system: no type specified. -- item.py:__init__:242
    2015-06-05 23:03:12,401 DEBUG Main Item env: no type specified. -- item.py:__init__:242
    2015-06-05 23:03:12,403 INFO Main Start Plugins -- plugin.py:start:65
    2015-06-05 23:03:12,404 INFO Main Start Logics -- logic.py:__init__:33
    2015-06-05 23:03:12,405 DEBUG Main Reading Logics from /usr/local/smarthome-1.0/lib/env/logic_conf -- logic.py:_read_logics:64
    2015-06-05 23:03:12,407 DEBUG Main Reading Logics from /usr/local/smarthome-1.0/etc/logic.conf -- logic.py:_read_logics:64
    2015-06-05 23:03:12,409 DEBUG Main Logic: env_init -- logic.py:__init__:44
    2015-06-05 23:03:12,418 DEBUG Main Logic: env_stat -- logic.py:__init__:44
    2015-06-05 23:03:12,422 DEBUG Main env_stat next time: 2015-06-05 23:03:24+02:00 -- scheduler.py:_next_time:289
    2015-06-05 23:03:12,423 DEBUG Main Logic: env_loc -- logic.py:__init__:44
    2015-06-05 23:03:12,914 DEBUG Connections KNX: connected to hauspi:6720 -- connection.py:connect:384
    2015-06-05 23:03:12,915 DEBUG Connections KNX: enable group monitor -- __init__.py:handle_connect:117
    2015-06-05 23:03:17,903 DEBUG env_loc Item env.location.sunrise = 2015-06-06 05:19:22.600269+02:00 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:17,905 DEBUG env_init Item env.core.version = 1.0 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:17,923 DEBUG sh.gc Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498
    2015-06-05 23:03:17,976 DEBUG env_loc Item env.location.sunset = 2015-06-06 21:39:47.985468+02:00 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:17,978 DEBUG env_init Item env.core.start = 2015-06-05 23:03:17.977755+02:00 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:18,011 DEBUG env_loc Item env.location.moonrise = 2015-06-05 23:46:35.108735+02:00 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:18,033 DEBUG env_loc Item env.location.moonset = 2015-06-06 09:24:10.063271+02:00 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:18,034 DEBUG env_init Item env.system.name = narya via Logic None None -- item.py:__update:363
    2015-06-05 23:03:18,065 DEBUG env_loc Item env.location.moonphase = 5 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:18,133 DEBUG env_loc Item env.location.night = True via Logic None None -- item.py:__update:363
    2015-06-05 23:03:18,134 DEBUG env_init Item env.system.start = 2015-04-03 12:10:59.133710+02:00 via Logic None None -- item.py:__update:363
    2015-06-05 23:03:18,247 ERROR sh.gc Method sh.gc exception: 'module' object has no attribute 'quote' -- scheduler.py:_task:348
    Traceback (most recent call last):
    File "/usr/local/smarthome-1.0/lib/scheduler.py", line 344, in _task
    obj()
    File "../../bin/smarthome.py", line 489, in _maintenance
    references = sum(self._object_refcount().values())
    File "../../bin/smarthome.py", line 520, in _object_refcount
    obj = getattr(module, sym)
    File "/usr/local/lib/python3.2/dist-packages/six.py", line 90, in __get__
    result = self._resolve()
    File "/usr/local/lib/python3.2/dist-packages/six.py", line 159, in _resolve
    return getattr(module, self.attr)
    AttributeError: 'module' object has no attribute 'quote'
    Danach läuft das Programm offensichtlich weiter; die Meldungen des (aktivierten) Busmonitors werden mitgeloggt.

    Ist das für den Betrieb relevant, sollte (kann!) ich denn Fehler beheben? Ich bin mir nicht sicher, ob/wie ich die Funktionsfähigkeit überprüfen kann; eine Visu ist noch nicht installiert.

    Gruß
    Sebastian

    #2
    Hallo,

    das Problem wird anscheinend durch das PIP six verursacht. Verwendest Du das in einer Logik? Ich kann mir spontan nicht erklären wieso das hier sonst referenziert werden würde.
    Für den Betrieb ist das allerdings nicht relevant.

    Bis bald

    Marcus

    Kommentar


      #3
      Meine logic.conf ist leer - ich will smarthome.py ja erstmal zum Laufen bringen, danach testen und kennenlernen, und mich dann in die smartvisu einarbeiten...

      Muss ich mal schauen, was six.py überhaupt ist / macht...

      Kommentar


        #4
        Du solltest Dir IMHO eher Gedanken machen wo es her kommt, denn irgendwie und irgendwer muß es ja installiert haben... Evtl. nochmal frisch aufsetzen, wer weiß was da für Fehler noch alle hinter diesem schlummern....

        Kommentar


          #5
          Das six.py kommt aus dem pip-Paket - pip habe ich gem. Installationsanleitung direkt aus dem Netz installiert.

          Auf einem frisch aufgesetzten Debian8 habe ich jetzt mal alles, was mit python zu tun hat (2.x), entfernt und nur python3 gem. Anleitung installiert. pip habe ich nicht per easy_install3, sondern als Paket python3-pip installiert - in beiden Fällen erfordert die Installation von pip auch six.

          Auf dem neuen System läuft es ohne Fehler. Insofern mal abwarten, was da noch kommt.

          Kommentar


            #6
            Zitat von Morg Beitrag anzeigen
            Das six.py kommt aus dem pip-Paket - pip habe ich gem. Installationsanleitung direkt aus dem Netz installiert.
            Hmm, komisch. Bei mir gibt es das nicht obwohl ich auch PIP installiert habe. Anyway, wie Du schon schreibst, nun mal beobachten....

            Kommentar

            Lädt...
            X