Hi,
ich weiss da momentan wirklich nicht mehr weiter: Ich habe mir das Sample Plugin aus dem dev Ordner als Vorlage zum bauen meines Plugins genommen... aber irgendwie bekomme ich beim Starten immer nur im Logfile folgenden Fehler:
aber der manuelle Test findet keinen Fehler:
Viel geändert habe ich noch nicht einmal...
Jemand eine Idee?
ich weiss da momentan wirklich nicht mehr weiter: Ich habe mir das Sample Plugin aus dem dev Ordner als Vorlage zum bauen meines Plugins genommen... aber irgendwie bekomme ich beim Starten immer nur im Logfile folgenden Fehler:
Code:
2017-12-03 22:28:48 INFO Main Loading '/usr/local/smarthomeng-dev/plugins/zwave/plugin.yaml' to 'OrderedDict' 2017-12-03 22:28:48 INFO Main plugin 'zwave': Metadata paramlist = '['device']' 2017-12-03 22:28:49 ERROR Main Plugin 'zwave' from section 'zwave' exception: 'str' object has no attribute 'getLogger' Traceback (most recent call last): File "/usr/local/smarthomeng-dev/lib/plugin.py", line 111, in __init__ plugin_thread = PluginWrapper(smarthome, plugin, classname, classpath, args, instance, self.meta) File "/usr/local/smarthomeng-dev/lib/plugin.py", line 413, in __init__ exec("self.plugin.__init__(smarthome{0}{1})".format("," if len(arglist) else "", argstring)) File "<string>", line 1, in <module> File "/usr/local/smarthomeng-dev/plugins/zwave/__init__.py", line 71, in __init__ self.logger = logging.getLogger(__name__) # get a unique logger for the plugin and provide it internally AttributeError: 'str' object has no attribute 'getLogger'
Code:
root@zentrale:/usr/local/smarthome-dev# python3 Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import plugins.zwave >>>
Jemand eine Idee?
Kommentar