Ankündigung

Einklappen
Keine Ankündigung bisher.

Problem - 'class_name' <class 'KeyError'>

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

    Problem - 'class_name' <class 'KeyError'>

    Hallo zusammen,

    bekomme SmartHome nicht mehr fehlerfrei installiert (siehe log). Hab unter Ubuntu 14.04 und Debian 7.5 versucht. Alles exact nach Anleitung.
    Beide male mit folgender Fehlermeldung:

    2015-08-28 10:39:31,737 INFO Main Start SmartHome.py 1.0-45-g02cf972 -- smarthome.py:__init__:231
    2015-08-28 10:39:31,738 DEBUG Main Python 3.2.3 -- smarthome.py:__init__:232
    2015-08-28 10:39:31,738 INFO Main Init Scheduler -- scheduler.py:__init__:86
    2015-08-28 10:39:31,738 DEBUG Scheduler creating 5 workers -- scheduler.py:run:93
    2015-08-28 10:39:31,738 INFO Main Init Plugins -- smarthome.py:start:274
    2015-08-28 10:39:31,739 DEBUG Main Plugin: knx -- plugin.py:__init__:43
    2015-08-28 10:39:31,740 DEBUG Main Plugin: ow -- plugin.py:__init__:43
    2015-08-28 10:39:31,741 ERROR Main Unhandled exception: 'class_name'
    <class 'KeyError'>
    File "/usr/local/smarthome/bin/smarthome.py", line 606, in <module>
    sh.start()
    File "/usr/local/smarthome/bin/smarthome.py", line 275, in start
    self._plugins = lib.plugin.Plugins(self, configfile=self._plugin_conf)
    File "/usr/local/smarthome/lib/plugin.py", line 50, in __init__
    classname = _conf[plugin]['class_name']
    -- smarthome.py:_excepthook:494

    # plugin.conf
    [knx]
    class_name = KNX
    class_path = plugins.knx
    # host = 127.0.0.1
    # port = 6720
    # send_time = 600 # update date/time every 600 seconds, default none
    # time_ga = 1/1/1 # default none
    # date_ga = 1/1/2 # default none
    [ow]
    # class_name = OneWire
    # class_path = plugins.onewire
    [visu]
    class_name = WebSocket
    class_path = plugins.visu
    smartvisu_dir = /var/www/smartVISU
    # for Ubuntu 14.04 upwards the base for html has changed
    # smartvisu_dir = /var/www/html/smartVISU
    [cli]
    class_name = CLI
    class_path = plugins.cli
    ip = 0.0.0.0
    update = True
    [sql]
    class_name = SQL
    class_path = plugins.sqlite


    Ich komme nicht alleine weiter. Bitte helft

    Danke !!



    #2
    Hallo,

    [ow] auch auskommentieren.

    Bis bald

    Marcus

    Kommentar

    Lädt...
    X