• 1
  • 86
  • 87
  • 88(current)
  • 89
  • 90
  • 176
Release Kanzi: Amazon Alexa skill for Kodi
You might try repositioning your Echo or something.

But there's not much we can do in the skill itself to fix this kind of thing.

As for the error, we utilize Amazon's standard built-ins for things like OK, no, yes, cancel, etc. If Amazon doesn't consider "sure yes" an affirmative, then we won't either.
Reply
I had some issues when running `pip install -r requirements.txt` in Ubuntu Server 16.04.
I kept getting these errors.
Code:
Failed cleaning build dir for cryptography
Code:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BNnDST/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__)
;code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-6DwlqY-record/install-record.txt --single-vers
ion-externally-managed --compile" failed with error code 1 in /tmp/pip-build-BNnDST/cryptography/

I ended up having to install some packages first
Code:
sudo apt install build-essential libssl-dev libffi-dev python-dev

After that, I was able to run `pip install -r requirements.txt` without errors and deploy the code to AWS
Reply
At first I tried cody as the invocation name as suggested on README and it worked terrible for me. After have changed to kodi it worked way better.
Reply
Yeah, kodi works better for me too.

Sent from my D5803
Reply
Hi,

I followed the instructions on github and made a new user with admin rights
then the intructions say:
Next, run these commands to configure your computer for AWS service access: pip install awscli and then aws configure. Just follow the prompts, and copy paste the keys when it asks for them. When it asks for location, if you are in the US, enter: us-east-1, and if you are in Europe: eu-west-1.

I ran the scripts, they run through, but the scripts are not asking for anything. Any thoughts?
Reply
(2017-04-15, 11:15)wellsecond Wrote: I am getting this when trying pip install awscli:

This is a bit late as I see you have got this working using sudo.

It looks like you have installed python using Homebrew, when using packages installed via brew you shouldn't need to use sudo for pip. Anything installed using brew goes into /usr/local and is completely separated from system stuff. Ideally you shouldn't use sudo for any package manager (npm, pip, bower etc) if installed via brew.

Your python setup may be a little confused and need looking at, though it is beyond this thread. Have a look at http://docs.brew.sh/Homebrew-and-Python.html and https://hackercodex.com/guide/python-dev...n-mac-osx/

You can also install awscli using brew (brew install awscli)
Reply
(2017-04-16, 12:25)wilhelmus Wrote: Hi,

I followed the instructions on github and made a new user with admin rights
then the intructions say:
Next, run these commands to configure your computer for AWS service access: pip install awscli and then aws configure. Just follow the prompts, and copy paste the keys when it asks for them. When it asks for location, if you are in the US, enter: us-east-1, and if you are in Europe: eu-west-1.

I ran the scripts, they run through, but the scripts are not asking for anything. Any thoughts?

What do they say?
Reply
(2017-04-16, 19:23)digiltd Wrote:
(2017-04-15, 11:15)wellsecond Wrote: I am getting this when trying pip install awscli:

This is a bit late as I see you have got this working using sudo.

It looks like you have installed python using Homebrew, when using packages installed via brew you shouldn't need to use sudo for pip. Anything installed using brew goes into /usr/local and is completely separated from system stuff. Ideally you shouldn't use sudo for any package manager (npm, pip, bower etc) if installed via brew.

Your python setup may be a little confused and need looking at, though it is beyond this thread. Have a look at http://docs.brew.sh/Homebrew-and-Python.html and https://hackercodex.com/guide/python-dev...n-mac-osx/

You can also install awscli using brew (brew install awscli)

Thank you! It's useful information!
Reply
(2017-04-16, 21:53)m0ngr31 Wrote:
(2017-04-16, 12:25)wilhelmus Wrote: Hi,

I followed the instructions on github and made a new user with admin rights
then the intructions say:
Next, run these commands to configure your computer for AWS service access: pip install awscli and then aws configure. Just follow the prompts, and copy paste the keys when it asks for them. When it asks for location, if you are in the US, enter: us-east-1, and if you are in Europe: eu-west-1.

I ran the scripts, they run through, but the scripts are not asking for anything. Any thoughts?

What do they say?

This is what I get:

Microsoft Windows [Version 10.0.15063]

C:\Python27\Scripts>pip install awscli
Collecting awscli
Downloading awscli-1.11.76-py2.py3-none-any.whl (1.2MB)
100% |################################| 1.2MB 731kB/s
Collecting colorama<=0.3.7,>=0.2.5 (from awscli)
Downloading colorama-0.3.7-py2.py3-none-any.whl
Collecting docutils>=0.10 (from awscli)
Downloading docutils-0.13.1-py2-none-any.whl (537kB)
100% |################################| 542kB 1.0MB/s
Collecting PyYAML<=3.12,>=3.10 (from awscli)
Downloading PyYAML-3.12-cp27-cp27m-win32.whl (182kB)
100% |################################| 184kB 860kB/s
Collecting rsa<=3.5.0,>=3.1.2 (from awscli)
Downloading rsa-3.4.2-py2.py3-none-any.whl (46kB)
100% |################################| 51kB 948kB/s
Collecting s3transfer<0.2.0,>=0.1.9 (from awscli)
Downloading s3transfer-0.1.10-py2.py3-none-any.whl (54kB)
100% |################################| 61kB 3.6MB/s
Collecting botocore==1.5.39 (from awscli)
Downloading botocore-1.5.39-py2.py3-none-any.whl (3.4MB)
100% |################################| 3.4MB 379kB/s
Collecting pyasn1>=0.1.3 (from rsa<=3.5.0,>=3.1.2->awscli)
Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB)
100% |################################| 61kB 1.8MB/s
Collecting futures<4.0.0,>=2.2.0; python_version == "2.6" or python_version == "2.7" (from s3transfer<0.2.0,>=0.1.9->awscli)
Downloading futures-3.1.1-py2-none-any.whl
Collecting python-dateutil<3.0.0,>=2.1 (from botocore==1.5.39->awscli)
Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)
100% |################################| 194kB 1.2MB/s
Collecting jmespath<1.0.0,>=0.7.1 (from botocore==1.5.39->awscli)
Downloading jmespath-0.9.2-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore==1.5.39->awscli)
Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: colorama, docutils, PyYAML, pyasn1, rsa, futures, six, python-dateutil, jmespath, botocore, s3transfer, awscli
Successfully installed PyYAML-3.12 awscli-1.11.76 botocore-1.5.39 colorama-0.3.7 docutils-0.13.1 futures-3.1.1 jmespath-0.9.2 pyasn1-0.2.3 python-dateutil-2.6.0 rsa-3.4.2 s3transfer-0.1.10 six-1.10.0

C:\Python27\Scripts>pip install aws configure
Collecting aws
Downloading aws-0.2.5.tar.gz
Collecting configure
Downloading configure-0.5.tar.gz
Collecting boto (from aws)
Downloading boto-2.46.1-py2.py3-none-any.whl (1.4MB)
100% |################################| 1.4MB 605kB/s
Collecting fabric>=1.6 (from aws)
Downloading Fabric-1.13.1-py2-none-any.whl (92kB)
100% |################################| 102kB 1.2MB/s
Collecting prettytable>=0.7 (from aws)
Downloading prettytable-0.7.2.zip
Requirement already satisfied: pyyaml in c:\python27\lib\site-packages (from configure)
Collecting paramiko<3.0,>=1.10 (from fabric>=1.6->aws)
Downloading paramiko-2.1.2-py2.py3-none-any.whl (172kB)
100% |################################| 174kB 1.0MB/s
Collecting cryptography>=1.1 (from paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading cryptography-1.8.1-cp27-cp27m-win32.whl (1.1MB)
100% |################################| 1.1MB 882kB/s
Requirement already satisfied: pyasn1>=0.1.7 in c:\python27\lib\site-packages (from paramiko<3.0,>=1.10->fabric>=1.6->aws)
Requirement already satisfied: six>=1.4.1 in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Collecting ipaddress (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading ipaddress-1.0.18-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
100% |################################| 102kB 3.2MB/s
Collecting packaging (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading packaging-16.8-py2.py3-none-any.whl
Collecting enum34 (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading enum34-1.1.6-py2-none-any.whl
Requirement already satisfied: setuptools>=11.3 in c:\python27\lib\site-packages (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Collecting idna>=2.1 (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading idna-2.5-py2.py3-none-any.whl (55kB)
100% |################################| 61kB 3.8MB/s
Collecting cffi>=1.4.1 (from cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading cffi-1.10.0-cp27-cp27m-win32.whl (147kB)
100% |################################| 153kB 3.2MB/s
Collecting pyparsing (from packaging->cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
100% |################################| 61kB 4.1MB/s
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.1->paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading pycparser-2.17.tar.gz (231kB)
100% |################################| 235kB 1.5MB/s
Installing collected packages: boto, ipaddress, asn1crypto, pyparsing, packaging, enum34, idna, pycparser, cffi, cryptography, paramiko, fabric, prettytable, aws, configure
Running setup.py install for pycparser ... done
Running setup.py install for prettytable ... done
Running setup.py install for aws ... done
Running setup.py install for configure ... done
Successfully installed asn1crypto-0.22.0 aws-0.2.5 boto-2.46.1 cffi-1.10.0 configure-0.5 cryptography-1.8.1 enum34-1.1.6 fabric-1.13.1 idna-2.5 ipaddress-1.0.18 packaging-16.8 paramiko-2.1.2 prettytable-0.7.2 pycparser-2.17 pyparsing-2.2.0

The script runs through but no prompts to input anything.
Reply
The command is not pip install aws configure but aws configure.
Reply
(2017-04-17, 10:00)wellsecond Wrote: The command is not pip install aws configure but aws configure.

On aws configure I Get:

C:\Python27\Scripts>aws configure
usage: aws [-h] [-v] {as,ec2,elb} ...
aws: error: invalid choice: 'configure' (choose from 'as', 'ec2', 'elb')

C:\Python27\Scripts>
Reply
It's probably because you installed the wrong package.

Try pip uninstall aws and aws configure after that.
Reply
(2017-04-17, 10:28)wellsecond Wrote: It's probably because you installed the wrong package.

Try pip uninstall aws and aws configure after that.

I started over and got it working now.
Thanks!
Reply
(2017-04-15, 17:09)bill_orange Wrote: I have also gotten a few "there is a problem with your skills request" errors in attempting to run addons. Here's a log results:


Playing album or song

14:47:31
Sending request to http://redacted.duckdns.org:8080/jsonrpc

14:47:36
[2017-04-15 14:47:36,179] ERROR in c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app: Exception on / [POST]

14:47:36
Traceback (most recent call last):

14:47:36
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1982, in wsgi_app

14:47:36
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1614, in full_dispatch_request

14:47:36
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1517, in handle_user_exception

14:47:36
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1612, in full_dispatch_request

14:47:36
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1598, in dispatch_request

14:47:36
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\flask-ask\flask_ask\core.py", line 563, in _flask_view_func

14:47:36
File "/var/task/alexa.py", line 525, in alexa_listen_album_or_song

14:47:36
located = kodi.matchHeard(heard_artist, artists_list, 'artist')

14:47:36
UnboundLocalError: local variable 'heard_artist' referenced before assignment

14:47:36
[INFO] 2017-04-15T14:47:36.197Z 740afb23-21ea-11e7-9e6d-33579cebdb94 72.21.217.76 - - [15/Apr/2017:14:47:36 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/5035.738

14:47:36
END RequestId: 740afb23-21ea-11e7-9e6d-33579cebdb94

14:47:36
REPORT RequestId: 740afb23-21ea-11e7-9e6d-33579cebdb94 Duration: 5037.50 ms Billed Duration: 5100 ms Memory Size:

You're positive you got this result while trying to run an addon? It's in the wrong intent handler entirely.
Reply
Yup, positive. I went back and checked the app log.
Reply
  • 1
  • 86
  • 87
  • 88(current)
  • 89
  • 90
  • 176

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