2017-08-31, 00:57
I'm not sure, but I'd probably try deleting the venv and recreating it first.
Requirement already satisfied: docutils>=0.12 in /usr/local/lib/python2.7/dist-packages (from zappa)
Collecting lambda-packages==0.16.1 (from zappa)
Downloading lambda_packages-0.16.1.tar.gz (59.2MB)
99% |████████████████████████████████| 59.1MB 167kB/s eta 0:00:01Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 821, in unpack_url
hashes=hashes
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 659, in unpack_http_url
hashes)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 571, in written_chunks
for chunk in chunks:
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/ui.py", line 139, in iter
for x in it:
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 560, in resp_read
decode_content=False):
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 314, in read
data = self._fp.read(amt)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/filewrapper.py", line 63, in read
self._close()
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/filewrapper.py", line 50, in _close
self.__callback(self.__buf.getvalue())
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/controller.py", line 275, in cache_response
self.serializer.dumps(request, response, body=body),
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/serialize.py", line 55, in dumps
"body": _b64_encode_bytes(body),
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/cachecontrol/serialize.py", line 12, in _b64_encode_bytes
return base64.b64encode(b).decode("ascii")
MemoryError
(venv) pi@raspberrypi:~/kodi-alexa $
(2017-08-31, 02:27)jingai Wrote: I think you're running out of memory. You should try it on a desktop or laptop computer.
No module named pytz: ImportError
Traceback (most recent call last):
File "/var/task/handler.py", line 505, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 239, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 131, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/var/task/alexa.py", line 6, in <module>
import pytz
ImportError: No module named pytz
END RequestId: cbdced2b-8de5-11e7-858f-27eec54c21cc
(2017-07-13, 05:05)mngsparks Wrote: I just finished going through this awesome guide but keep getting the following error when Asking Alexa to do anything in the living room:
"There was a problem with the requested skill's response"
It also fails when trying to do it with the service simulator with the following:
"There was an error calling the remote endpoint, which returned HTTP 500 : Internal Server Error"
Please help. Thanks in advance.
On the next page, you'll have to paste the contents of the IntentSchema.json file into the "Intent Schema" field, and paste the contents of the SampleUtterances.txt or SampleUtterances.german.txt file in the "Sample Utterances" field. Generate and save your Custom Slots first before pasting the Intents and Utterances to avoid errors when attempting to save.
(2017-08-31, 08:20)sparky0820 Wrote: I'm really sorry to bring this up again, but I followed the guide to a tee and I am getting the HTTP 500 error. The invocation name works just fine, but when I try any of the commands I get the internal error when I test on the website or a "There was a problem with the requested skill's response" if I ask Alexa. Please help as I've spent hours on this with nothing to show for it. Thanks in advance.
(2017-08-31, 08:50)sanjonny Wrote: In the current guide, there are links to the intents and the utterances. When trying to open the link for the intents, it opens fine, but the link for utterances gives a 404 error. I tried it over and over again.
(2017-08-31, 08:50)sanjonny Wrote: So i pasted the stuff from intents into the file after doing the custom slots....BTW the guide is incorrect. You cannot save just the slots, you still have to do everything to get the page to save (stupid AWS). At least they made it a bit better, but you cannot save just the slots, it will not save with blank intents or blank utterances.
(2017-08-31, 08:50)sanjonny Wrote: In the upgrading.md file, there needs to be a few clarifications. The aws says to check that your virtual session is activated. HOW? Remember, people might not look at this stuff for oh say 6 or 7 months and things might have changed. If I stopped time here today and came back in 6 months, I don't think I would have any idea how to check if my virtual environment is enabled/activated (cause I don't even know how to check it now, even though I know it is because I just used it) but it would be a good idea to tell how to check it and have a link back to the readme section that covers how to set it up if it is not enabled/activated.
(2017-08-31, 08:50)sanjonny Wrote: Okay, another hiccup/question. For the multi kodi models, it works great. but for two of my units, they need different invocation names, like the way it used to work, where i had 2 different skills setup with changes to the configuration file (I think) For example, with this current setup, since it is by linking device id to kodi instance, that does not work for 2 of my kodi players, because I used the same dot to control both kodi devices. The way this was handled in the past, is that I had 2 skills with 2 different usernames (I think) so I could ask kodi to pause the living room and ask kodi to pause the kitchen.
I don't think the current method allows me to use different commands on the same dot (yet)
(2017-08-31, 08:50)sanjonny Wrote: so how do I have different skills....it seems that when you run the deploy or update w8ty zappa, it will create the same role name (kodi-alexa-dev-ZappaLambdaExecutionRole). So is there a way to use this setup to call the different devices? I understand I might have to duplicate the skills like before or whatever, but I can't seem to figure out how to get the proper links for each kodi instance.
(2017-08-31, 14:15)simon_rb Wrote: I have one Echo Dot for the time being. I have an Amazon Fire TV 2 running Kodi 17.4 in the Living Room and a Sony Android TV running Kodi 17.4 in the Living Room. I plan to add the Alexa compatible fire sticks in other rooms as they have the older sticks and can't play HVEC files.
Anyways.. They all share the same library which is handy and would like to control the two in the living room by which ever names which I haven't thought of yet.
How do I add them to the config file? I see this at the bottom
# living room dot
[amzn1.ask.device.XXX]
address = living-room-kodi
however is that more for multiple dots..
How can I have my one dot control my two kodis that are in the living room?
Thanks for your help so far!
(2017-08-31, 13:40)jingai Wrote:(2017-08-31, 08:20)sparky0820 Wrote: I'm really sorry to bring this up again, but I followed the guide to a tee and I am getting the HTTP 500 error. The invocation name works just fine, but when I try any of the commands I get the internal error when I test on the website or a "There was a problem with the requested skill's response" if I ask Alexa. Please help as I've spent hours on this with nothing to show for it. Thanks in advance.
Need to see the skill logs to know what's going on.