• 1
  • 141
  • 142
  • 143(current)
  • 144
  • 145
  • 176
Release Kanzi: Amazon Alexa skill for Kodi
(2017-12-28, 22:13)XavierPi Wrote: Hi, 
I just receive my Alexa, I living in Canada, and want to integrate it with Kodi.
I follow the process, but when it's time to enter "zappa deploy dev" I receive this:
Calling deploy for stage dev.. Warning! AWS Lambda may not be available in this AWS Region! Warning! AWS API Gateway may not be available in this AWS Region! Oh no! An error occurred! Sad
EndpointConnectionError: Could not connect to the endpoint URL: "https://iam.1.amazonaws.com/"

Any idea to what to do to change that ?

Thank You !!
 I answer myself. I done ! Everything is setup but that doesn't work very well
Reply
I'm very close....   using flask-ask version 0.9.3

getting this error in apache logs:

[Sun Dec 31 14:34:38.286449 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317]     raise TypeError('Can\\'t compile non template nodes')
[Sun Dec 31 14:34:38.286480 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317] TypeError: Can't compile non template nodes

What did I mess up?

Thanks in advance gurus
Reply
I'm very close....   using flask-ask version 0.9.3

getting this error in apache logs:

[Sun Dec 31 14:34:38.286331 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317]     defer_init=defer_init)
[Sun Dec 31 14:34:38.286359 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 543, in _generate
[Sun Dec 31 14:34:38.286388 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317]     optimized=self.optimized)
[Sun Dec 31 14:34:38.286418 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317]   File "/usr/local/lib/python2.7/dist-packages/jinja2/compiler.py", line 78, in generate
[Sun Dec 31 14:34:38.286449 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317]     raise TypeError('Can\\'t compile non template nodes')
[Sun Dec 31 14:34:38.286480 2017] [wsgi:error] [pid 27426:tid 1972368432] [client 72.21.217.77:24317] TypeError: Can't compile non template nodes

What did I mess up?

reposted with more of the log

Thanks in advance gurus
Reply
Here is the full error:
Code:
[Mon Jan 01 19:26:54.272777 2018] [wsgi:error] [pid 29939:tid 1965028400] INFO:kodi_voice.cache:Initalizing
[Mon Jan 01 19:26:54.273455 2018] [wsgi:error] [pid 29939:tid 1965028400] INFO:kodi_voice.cacheBig Grinisabled
[Mon Jan 01 19:26:54.274496 2018] [wsgi:error] [pid 29939:tid 1965028400] INFO:kodi_alexa.alexa:Navigate: Up
[Mon Jan 01 19:26:54.275307 2018] [wsgi:error] [pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Received request from device None
[Mon Jan 01 19:26:54.275785 2018] [wsgi:error] [pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Sending request to http://127.0.0.1:8080/jsonrpc
[Mon Jan 01 19:26:54.283069 2018] [wsgi:error] [pid 29939:tid 1965028400] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
[Mon Jan 01 19:26:54.300640 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153] [2018-01-01 19:26:54,297] ERROR in app: Exception on / [POST]
[Mon Jan 01 19:26:54.300851 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153] Traceback (most recent call last):
[Mon Jan 01 19:26:54.300899 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
[Mon Jan 01 19:26:54.300942 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     response = self.full_dispatch_request()
[Mon Jan 01 19:26:54.300978 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
[Mon Jan 01 19:26:54.301013 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     rv = self.handle_user_exception(e)
[Mon Jan 01 19:26:54.301054 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
[Mon Jan 01 19:26:54.301092 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     reraise(exc_type, exc_value, tb)
[Mon Jan 01 19:26:54.301127 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
[Mon Jan 01 19:26:54.301161 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     rv = self.dispatch_request()
[Mon Jan 01 19:26:54.301194 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
[Mon Jan 01 19:26:54.301229 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     return self.view_functions[rule.endpoint](**req.view_args)
[Mon Jan 01 19:26:54.301325 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask_ask/core.py", line 594, in _flask_view_func
[Mon Jan 01 19:26:54.301361 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     result = self._map_intent_to_view_func(self.request.intent)()
[Mon Jan 01 19:26:54.301390 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 85, in decorated_function
[Mon Jan 01 19:26:54.301421 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     return f(*args, **kwargs)
[Mon Jan 01 19:26:54.301449 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 1575, in alexa_up
[Mon Jan 01 19:26:54.301479 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     response_text = render_template('short_confirm').encode('utf-8')
[Mon Jan 01 19:26:54.301508 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 133, in render_template
[Mon Jan 01 19:26:54.301537 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
[Mon Jan 01 19:26:54.301568 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 869, in get_or_select_template
[Mon Jan 01 19:26:54.301599 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     return self.get_template(template_name_or_list, parent, globals)
[Mon Jan 01 19:26:54.301629 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 830, in get_template
[Mon Jan 01 19:26:54.301659 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     return self._load_template(name, self.make_globals(globals))
[Mon Jan 01 19:26:54.301689 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 804, in _load_template
[Mon Jan 01 19:26:54.301719 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     template = self.loader.load(self, name, globals)
[Mon Jan 01 19:26:54.301748 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 125, in load
[Mon Jan 01 19:26:54.301777 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     code = environment.compile(source, name, filename)
[Mon Jan 01 19:26:54.301806 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 581, in compile
[Mon Jan 01 19:26:54.301835 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     defer_init=defer_init)
[Mon Jan 01 19:26:54.301863 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 543, in _generate
[Mon Jan 01 19:26:54.301893 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     optimized=self.optimized)
[Mon Jan 01 19:26:54.301921 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/compiler.py", line 78, in generate
[Mon Jan 01 19:26:54.301951 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153]     raise TypeError('Can\\'t compile non template nodes')
[Mon Jan 01 19:26:54.301979 2018] [wsgi:error] [pid 29939:tid 1965028400] [client 72.21.217.152:15153] TypeError: Can't compile non template nodes
Reply
(2018-01-02, 02:37)noop99 Wrote: Here is the full error:
Code:
[Mon Jan 01 19:26:54.272777 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.cache:Initalizing
[Mon Jan 01 19:26:54.273455 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.cacheBig Grinisabled
[Mon Jan 01 19:26:54.274496 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_alexa.alexa:Navigate: Up
[Mon Jan 01 19:26:54.275307 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Received request from device None
[Mon Jan 01 19:26:54.275785 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Sending request to http://127.0.0.1:8080/jsonrpc
[Mon Jan 01 19:26:54.283069 2018][wsgi:error][pid 29939:tid 1965028400] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
[Mon Jan 01 19:26:54.300640 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153][2018-01-01 19:26:54,297] ERROR in app: Exception on / [POST][Mon Jan 01 19:26:54.300851 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153] Traceback (most recent call last):
[Mon Jan 01 19:26:54.300899 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
[Mon Jan 01 19:26:54.300942 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     response = self.full_dispatch_request()
[Mon Jan 01 19:26:54.300978 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
[Mon Jan 01 19:26:54.301013 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     rv = self.handle_user_exception(e)
[Mon Jan 01 19:26:54.301054 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
[Mon Jan 01 19:26:54.301092 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     reraise(exc_type, exc_value, tb)
[Mon Jan 01 19:26:54.301127 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
[Mon Jan 01 19:26:54.301161 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     rv = self.dispatch_request()
[Mon Jan 01 19:26:54.301194 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
[Mon Jan 01 19:26:54.301229 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self.view_functions[rule.endpoint](**req.view_args)
[Mon Jan 01 19:26:54.301325 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask_ask/core.py", line 594, in _flask_view_func
[Mon Jan 01 19:26:54.301361 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     result = self._map_intent_to_view_func(self.request.intent)()
[Mon Jan 01 19:26:54.301390 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 85, in decorated_function
[Mon Jan 01 19:26:54.301421 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return f(*args, **kwargs)
[Mon Jan 01 19:26:54.301449 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 1575, in alexa_up
[Mon Jan 01 19:26:54.301479 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     response_text = render_template('short_confirm').encode('utf-8')
[Mon Jan 01 19:26:54.301508 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 133, in render_template
[Mon Jan 01 19:26:54.301537 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
[Mon Jan 01 19:26:54.301568 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 869, in get_or_select_template
[Mon Jan 01 19:26:54.301599 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self.get_template(template_name_or_list, parent, globals)
[Mon Jan 01 19:26:54.301629 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 830, in get_template
[Mon Jan 01 19:26:54.301659 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self._load_template(name, self.make_globals(globals))
[Mon Jan 01 19:26:54.301689 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 804, in _load_template
[Mon Jan 01 19:26:54.301719 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     template = self.loader.load(self, name, globals)
[Mon Jan 01 19:26:54.301748 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 125, in load
[Mon Jan 01 19:26:54.301777 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     code = environment.compile(source, name, filename)
[Mon Jan 01 19:26:54.301806 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 581, in compile
[Mon Jan 01 19:26:54.301835 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     defer_init=defer_init)
[Mon Jan 01 19:26:54.301863 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 543, in _generate
[Mon Jan 01 19:26:54.301893 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     optimized=self.optimized)
[Mon Jan 01 19:26:54.301921 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/compiler.py", line 78, in generate
[Mon Jan 01 19:26:54.301951 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     raise TypeError('Can\\'t compile non template nodes')
[Mon Jan 01 19:26:54.301979 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153] TypeError: Can't compile non template nodes
You are not giving much to go on, it looks like you are self hosting, are the yaml template files in the same directory? Have you tried googling the error?
Reply
(2018-01-04, 12:45)digiltd Wrote:
(2018-01-02, 02:37)noop99 Wrote: Here is the full error:
Code:
[Mon Jan 01 19:26:54.272777 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.cache:Initalizing
[Mon Jan 01 19:26:54.273455 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.cacheBig Grinisabled
[Mon Jan 01 19:26:54.274496 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_alexa.alexa:Navigate: Up
[Mon Jan 01 19:26:54.275307 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Received request from device None
[Mon Jan 01 19:26:54.275785 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Sending request to http://127.0.0.1:8080/jsonrpc
[Mon Jan 01 19:26:54.283069 2018][wsgi:error][pid 29939:tid 1965028400] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
[Mon Jan 01 19:26:54.300640 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153][2018-01-01 19:26:54,297] ERROR in app: Exception on / [POST][Mon Jan 01 19:26:54.300851 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153] Traceback (most recent call last):
[Mon Jan 01 19:26:54.300899 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
[Mon Jan 01 19:26:54.300942 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     response = self.full_dispatch_request()
[Mon Jan 01 19:26:54.300978 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
[Mon Jan 01 19:26:54.301013 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     rv = self.handle_user_exception(e)
[Mon Jan 01 19:26:54.301054 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
[Mon Jan 01 19:26:54.301092 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     reraise(exc_type, exc_value, tb)
[Mon Jan 01 19:26:54.301127 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
[Mon Jan 01 19:26:54.301161 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     rv = self.dispatch_request()
[Mon Jan 01 19:26:54.301194 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
[Mon Jan 01 19:26:54.301229 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self.view_functions[rule.endpoint](**req.view_args)
[Mon Jan 01 19:26:54.301325 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask_ask/core.py", line 594, in _flask_view_func
[Mon Jan 01 19:26:54.301361 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     result = self._map_intent_to_view_func(self.request.intent)()
[Mon Jan 01 19:26:54.301390 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 85, in decorated_function
[Mon Jan 01 19:26:54.301421 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return f(*args, **kwargs)
[Mon Jan 01 19:26:54.301449 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 1575, in alexa_up
[Mon Jan 01 19:26:54.301479 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     response_text = render_template('short_confirm').encode('utf-8')
[Mon Jan 01 19:26:54.301508 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 133, in render_template
[Mon Jan 01 19:26:54.301537 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
[Mon Jan 01 19:26:54.301568 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 869, in get_or_select_template
[Mon Jan 01 19:26:54.301599 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self.get_template(template_name_or_list, parent, globals)
[Mon Jan 01 19:26:54.301629 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 830, in get_template
[Mon Jan 01 19:26:54.301659 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self._load_template(name, self.make_globals(globals))
[Mon Jan 01 19:26:54.301689 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 804, in _load_template
[Mon Jan 01 19:26:54.301719 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     template = self.loader.load(self, name, globals)
[Mon Jan 01 19:26:54.301748 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 125, in load
[Mon Jan 01 19:26:54.301777 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     code = environment.compile(source, name, filename)
[Mon Jan 01 19:26:54.301806 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 581, in compile
[Mon Jan 01 19:26:54.301835 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     defer_init=defer_init)
[Mon Jan 01 19:26:54.301863 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 543, in _generate
[Mon Jan 01 19:26:54.301893 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     optimized=self.optimized)
[Mon Jan 01 19:26:54.301921 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/compiler.py", line 78, in generate
[Mon Jan 01 19:26:54.301951 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     raise TypeError('Can\\'t compile non template nodes')
[Mon Jan 01 19:26:54.301979 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153] TypeError: Can't compile non template nodes
You are not giving much to go on, it looks like you are self hosting, are the yaml template files in the same directory? Have you tried googling the error?  
Thanks so much for the response...yes I am self hosting.   The yaml files, thanks, that makes sense (since they are called template...  Doh).
I assume they need to be the directory accessible by the python code?  I'll try that tonight when I get home.

Oh Yes I googled for quite a while on that one to no avail.

Thanks Again....I'll let you know.
Reply
(2018-01-04, 20:03)noop99 Wrote:
(2018-01-04, 12:45)digiltd Wrote:
(2018-01-02, 02:37)noop99 Wrote: Here is the full error:
Code:
[Mon Jan 01 19:26:54.272777 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.cache:Initalizing
[Mon Jan 01 19:26:54.273455 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.cacheBig Grinisabled
[Mon Jan 01 19:26:54.274496 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_alexa.alexa:Navigate: Up
[Mon Jan 01 19:26:54.275307 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Received request from device None
[Mon Jan 01 19:26:54.275785 2018][wsgi:error][pid 29939:tid 1965028400] INFO:kodi_voice.kodi:Sending request to http://127.0.0.1:8080/jsonrpc
[Mon Jan 01 19:26:54.283069 2018][wsgi:error][pid 29939:tid 1965028400] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
[Mon Jan 01 19:26:54.300640 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153][2018-01-01 19:26:54,297] ERROR in app: Exception on / [POST][Mon Jan 01 19:26:54.300851 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153] Traceback (most recent call last):
[Mon Jan 01 19:26:54.300899 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
[Mon Jan 01 19:26:54.300942 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     response = self.full_dispatch_request()
[Mon Jan 01 19:26:54.300978 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
[Mon Jan 01 19:26:54.301013 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     rv = self.handle_user_exception(e)
[Mon Jan 01 19:26:54.301054 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
[Mon Jan 01 19:26:54.301092 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     reraise(exc_type, exc_value, tb)
[Mon Jan 01 19:26:54.301127 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
[Mon Jan 01 19:26:54.301161 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     rv = self.dispatch_request()
[Mon Jan 01 19:26:54.301194 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
[Mon Jan 01 19:26:54.301229 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self.view_functions[rule.endpoint](**req.view_args)
[Mon Jan 01 19:26:54.301325 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask_ask/core.py", line 594, in _flask_view_func
[Mon Jan 01 19:26:54.301361 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     result = self._map_intent_to_view_func(self.request.intent)()
[Mon Jan 01 19:26:54.301390 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 85, in decorated_function
[Mon Jan 01 19:26:54.301421 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return f(*args, **kwargs)
[Mon Jan 01 19:26:54.301449 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/var/www/html/alexa.py", line 1575, in alexa_up
[Mon Jan 01 19:26:54.301479 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     response_text = render_template('short_confirm').encode('utf-8')
[Mon Jan 01 19:26:54.301508 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 133, in render_template
[Mon Jan 01 19:26:54.301537 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
[Mon Jan 01 19:26:54.301568 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 869, in get_or_select_template
[Mon Jan 01 19:26:54.301599 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self.get_template(template_name_or_list, parent, globals)
[Mon Jan 01 19:26:54.301629 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 830, in get_template
[Mon Jan 01 19:26:54.301659 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     return self._load_template(name, self.make_globals(globals))
[Mon Jan 01 19:26:54.301689 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 804, in _load_template
[Mon Jan 01 19:26:54.301719 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     template = self.loader.load(self, name, globals)
[Mon Jan 01 19:26:54.301748 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 125, in load
[Mon Jan 01 19:26:54.301777 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     code = environment.compile(source, name, filename)
[Mon Jan 01 19:26:54.301806 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 581, in compile
[Mon Jan 01 19:26:54.301835 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     defer_init=defer_init)
[Mon Jan 01 19:26:54.301863 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 543, in _generate
[Mon Jan 01 19:26:54.301893 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     optimized=self.optimized)
[Mon Jan 01 19:26:54.301921 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]   File "/usr/local/lib/python2.7/dist-packages/jinja2/compiler.py", line 78, in generate
[Mon Jan 01 19:26:54.301951 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153]     raise TypeError('Can\\'t compile non template nodes')
[Mon Jan 01 19:26:54.301979 2018][wsgi:error][pid 29939:tid 1965028400][client 72.21.217.152:15153] TypeError: Can't compile non template nodes
You are not giving much to go on, it looks like you are self hosting, are the yaml template files in the same directory? Have you tried googling the error?      
Thanks so much for the response...yes I am self hosting.   The yaml files, thanks, that makes sense (since they are called template...  Doh).
I assume they need to be the directory accessible by the python code?  I'll try that tonight when I get home.

Oh Yes I googled for quite a while on that one to no avail.

Thanks Again....I'll let you know.    
      Excellent thanks digiltd.  The template yaml file was missing.  I can now control Kodi from the amazon  test page  my log sees:
  
:
[Sat Jan 06 14:26:00.098129 2018] [wsgi:error] [pid 25775:tid 1965028400] INFO:kodi_voice.cache:Initalizing
[Sat Jan 06 14:26:00.099138 2018] [wsgi:error] [pid 25775:tid 1965028400] INFO:kodi_voice.cacheBig Grinisabled
[Sat Jan 06 14:26:00.100444 2018] [wsgi:error] [pid 25775:tid 1965028400] INFO:kodi_alexa.alexa:Navigate: Down
[Sat Jan 06 14:26:00.102736 2018] [wsgi:error] [pid 25775:tid 1965028400] INFO:kodi_voice.kodi:Received request from device None
[Sat Jan 06 14:26:00.104522 2018] [wsgi:error] [pid 25775:tid 1965028400] INFO:kodi_voice.kodi:Sending request to http://127.0.0.1:8080/jsonrpc
[Sat Jan 06 14:26:00.145666 2018] [wsgi:error] [pid 25775:tid 1965028400] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1

    However when I try to control kodi from the alexa device I get "Sorry, Something went wrong".    Not very helpful. Any ideas?
Reply
(2018-01-06, 21:36)noop99 Wrote:
(2018-01-04, 20:03)noop99 Wrote:
(2018-01-04, 12:45)digiltd Wrote: You are not giving much to go on, it looks like you are self hosting, are the yaml template files in the same directory? Have you tried googling the error?      
Thanks so much for the response...yes I am self hosting.   The yaml files, thanks, that makes sense (since they are called template...  Doh).
I assume they need to be the directory accessible by the python code?  I'll try that tonight when I get home.

Oh Yes I googled for quite a while on that one to no avail.

Thanks Again....I'll let you know.     
      Excellent thanks digiltd.  The template yaml file was missing.  I can now control Kodi from the amazon  test page  my log sees:
  
:
[Sat Jan 06 14:26:00.098129 2018][wsgi:error][pid 25775:tid 1965028400] INFO:kodi_voice.cache:Initalizing
[Sat Jan 06 14:26:00.099138 2018][wsgi:error][pid 25775:tid 1965028400] INFO:kodi_voice.cacheBig Grinisabled
[Sat Jan 06 14:26:00.100444 2018][wsgi:error][pid 25775:tid 1965028400] INFO:kodi_alexa.alexa:Navigate: Down
[Sat Jan 06 14:26:00.102736 2018][wsgi:error][pid 25775:tid 1965028400] INFO:kodi_voice.kodi:Received request from device None
[Sat Jan 06 14:26:00.104522 2018][wsgi:error][pid 25775:tid 1965028400] INFO:kodi_voice.kodi:Sending request to http://127.0.0.1:8080/jsonrpc
[Sat Jan 06 14:26:00.145666 2018][wsgi:error][pid 25775:tid 1965028400] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1

    However when I try to control kodi from the alexa device I get "Sorry, Something went wrong".    Not very helpful. Any ideas? 
Got it!    From a previous post in this Thread....On the Alexa language was English(Canada)  the skill had language English(US)  made them the same and all is well !
Reply
Can any 1 help me? What im doing wrong? How should it looks? Help plz
Reply
The aws link that you have posted in the EU spot, should be in the "default" box above. I also selected don't specify a region. Tip: shouldnt post screenshots of your aws Url. Now others could use it.
Reply
THX! i saved it and now she tells " The requested skill took to long to respond" What can be wrong now ? Any ideas?
Reply
That sounds like the skill itself can not use that Url to reach the aws server. Make sure you have the full URL after "apn:" also make sure you confirmed your payment method (should get an email) and they have taken the $.30 from your account. Without that payment the service isn't actually enabled. Took 36 hrs from signup for mine.
Reply
I have checked.
Any other ideas ? Still no response...
Reply
What language is your echo set to in alexa app. Which language is your skill made in?
Reply
(2018-01-07, 18:02)davidrq78 Wrote: THX! i saved it and now she tells " The requested skill took to long to respond" What can be wrong now ? Any ideas?
 What command are you using to test with?

Try something super simple like "Alexa, ask kodi to pause" whilst you have something playing, as it doesn't do anything that uses your library and will let you know if all the bits can talk to each other.
Reply
  • 1
  • 141
  • 142
  • 143(current)
  • 144
  • 145
  • 176

Logout Mark Read Team Forum Stats Members Help
Kanzi: Amazon Alexa skill for Kodi15