Nachdem ich letzte Woche auf upgedated habe auf:
- SmartHomeNG Version: 1.7.1.master (cf2f7d85) in /usr/local/smarthome - tags/v1.7.1
- SmartHomeNG Plugins Version: 1.7.1.master (5c309c81) in /usr/local/smarthome/plugins - tags/v1.7.1
wollte ich das AlexaRc4shNG Plugin installieren, bekomme aber einen "Oops, Error 500: The server encountered an unexpected condition which prevented it from fulfilling the request." beim Aufrufen des Webinterfaces.
Das Fehlerlog sieht so aus:
Meine Plugin.yaml:
Kann mir jemand einen Tip geben was da schiefläuft?
Gruss
Marcus
- SmartHomeNG Version: 1.7.1.master (cf2f7d85) in /usr/local/smarthome - tags/v1.7.1
- SmartHomeNG Plugins Version: 1.7.1.master (5c309c81) in /usr/local/smarthome/plugins - tags/v1.7.1
wollte ich das AlexaRc4shNG Plugin installieren, bekomme aber einen "Oops, Error 500: The server encountered an unexpected condition which prevented it from fulfilling the request." beim Aufrufen des Webinterfaces.
Das Fehlerlog sieht so aus:
2020-05-04 20:53:27 ERROR cherrypy.error.139709652601824 [04/May/2020:20:53:27] HTTP
> Traceback (most recent call last):
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 638, in respond
> self._do_respond(path_info)
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
> response.body = self.handler()
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
> self.body = self.oldhandler(*args, **kwargs)
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
> return self.callable(*self.args, **self.kwargs)
> File "/usr/local/smarthome/plugins/alexarc4shng/__init__.py", line 1315, in index
> return self.render_template('index.html',device_list=myDe vices,csrf_cookie=self.plugin.csrf,alexa_device_co unt=alexa_device_count,time_auto_login=login_info, log_file=log_file)
> File "/usr/local/smarthome/plugins/alexarc4shng/__init__.py", line 1277, in render_template
> **kwargs)
> File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/environment.py", line 1090, in render
> self.environment.handle_exception()
> File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/environment.py", line 832, in handle_exception
> reraise(*rewrite_traceback_stack(source=source))
> File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/_compat.py", line 28, in reraise
> raise value.with_traceback(tb)
> File "/usr/local/smarthome/plugins/alexarc4shng/webif/templates/index.html", line 18, in top-level template code
> {% set tab4title = 'Communication-Protocol' %}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 161, in top-level template code
> {% if scroll_heading is not defined %}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 1, in top-level template code
> {% block doc -%}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 4, in block "doc"
> {%- block html %}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 76, in block "html"
> {% block body -%}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 79, in block "body"
> {% block content -%}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 148, in block "content"
> {% block bodytab3 %}
> File "/usr/local/smarthome/plugins/alexarc4shng/webif/templates/index.html", line 218, in block "bodytab3"
> <a class="float-sm-right" href="#" onclick="reloadCmds();" title="{{ _('Neu Laden', 'button') }}"><span id="refresh-element" class="fas fa-sync"></span></a>
> TypeError: translate() takes 2 positional arguments but 3 were given
> Traceback (most recent call last):
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 638, in respond
> self._do_respond(path_info)
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
> response.body = self.handler()
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
> self.body = self.oldhandler(*args, **kwargs)
> File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
> return self.callable(*self.args, **self.kwargs)
> File "/usr/local/smarthome/plugins/alexarc4shng/__init__.py", line 1315, in index
> return self.render_template('index.html',device_list=myDe vices,csrf_cookie=self.plugin.csrf,alexa_device_co unt=alexa_device_count,time_auto_login=login_info, log_file=log_file)
> File "/usr/local/smarthome/plugins/alexarc4shng/__init__.py", line 1277, in render_template
> **kwargs)
> File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/environment.py", line 1090, in render
> self.environment.handle_exception()
> File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/environment.py", line 832, in handle_exception
> reraise(*rewrite_traceback_stack(source=source))
> File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/_compat.py", line 28, in reraise
> raise value.with_traceback(tb)
> File "/usr/local/smarthome/plugins/alexarc4shng/webif/templates/index.html", line 18, in top-level template code
> {% set tab4title = 'Communication-Protocol' %}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 161, in top-level template code
> {% if scroll_heading is not defined %}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 1, in top-level template code
> {% block doc -%}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 4, in block "doc"
> {%- block html %}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 76, in block "html"
> {% block body -%}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 79, in block "body"
> {% block content -%}
> File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 148, in block "content"
> {% block bodytab3 %}
> File "/usr/local/smarthome/plugins/alexarc4shng/webif/templates/index.html", line 218, in block "bodytab3"
> <a class="float-sm-right" href="#" onclick="reloadCmds();" title="{{ _('Neu Laden', 'button') }}"><span id="refresh-element" class="fas fa-sync"></span></a>
> TypeError: translate() takes 2 positional arguments but 3 were given
Code:
AlexaRc4shNG: plugin_name: AlexaRc4shNG cookiefile: /usr/local/smarthome/plugins/alexarc4shng/cookies.txt host: alexa.amazon.de alexa_credentials: cGxhbmR0LxNjaHVsdTVAd2ViLmDlLkFjY2VzczRhbWF6b24= # Credentials geändert login_update_cycle: '432000'
Kann mir jemand einen Tip geben was da schiefläuft?
Gruss
Marcus
Kommentar