akhan23wgu / amazon-alexa-lg-tv

⛔️ DEPRECATED Control your LG TV (webOS 2.0+) with Amazon Alexa
57 stars 21 forks source link

Issue when running alexa-tv.py #11

Closed stevena9475 closed 6 years ago

stevena9475 commented 6 years ago

Hi, Thanks for this. I got to starting the script after all things successful and auth tv was successful

but when running the alexa-tv.py file i get the below error, im sure its something simple but can you help please?

Traceback (most recent call last): File "alexa-tv.py", line 15, in import fauxmo File "/Users/xxxxxxxxxx/Documents/amazon-alexa-lg-tv-master/fauxmo.py", line 31, in import requests ImportError: No module named requests

akhan23wgu commented 6 years ago

Pip install requests

On Dec 16, 2017 1:16 AM, "stevena9475" notifications@github.com wrote:

Hi, Thanks for this. I got to starting the script after all things successful and auth tv was successful

but when running the alexa-tv.py file i get the below error, im sure its something simple but can you help please?

Traceback (most recent call last): File "alexa-tv.py", line 15, in import fauxmo File "/Users/xxxxxxxxxx/Documents/amazon-alexa-lg-tv-master/fauxmo.py", line 31, in import requests ImportError: No module named requests

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw4_tNS7EX5qa189Yw72zjExsxb6hpks5tA3xggaJpZM4RERDT .

stevena9475 commented 6 years ago

Hi, if you referring to the requests file in the first steps this was done

Any other suggestions?

Sent from my iPhone

On 16 Dec 2017, at 08:49, Abid Khan notifications@github.com wrote:

Pip install requests

On Dec 16, 2017 1:16 AM, "stevena9475" notifications@github.com wrote:

Hi, Thanks for this. I got to starting the script after all things successful and auth tv was successful

but when running the alexa-tv.py file i get the below error, im sure its something simple but can you help please?

Traceback (most recent call last): File "alexa-tv.py", line 15, in import fauxmo File "/Users/xxxxxxxxxx/Documents/amazon-alexa-lg-tv-master/fauxmo.py", line 31, in import requests ImportError: No module named requests

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw4_tNS7EX5qa189Yw72zjExsxb6hpks5tA3xggaJpZM4RERDT .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

akhan23wgu commented 6 years ago

It's looking for the module 'requests'. It can't find the module. Normally if it can't find it, you're missing it. You're using Python 2, right?

On Dec 16, 2017 3:39 AM, "stevena9475" notifications@github.com wrote:

Hi, if you referring to the requests file in the first steps this was done

Any other suggestions?

Sent from my iPhone

On 16 Dec 2017, at 08:49, Abid Khan notifications@github.com wrote:

Pip install requests

On Dec 16, 2017 1:16 AM, "stevena9475" notifications@github.com wrote:

Hi, Thanks for this. I got to starting the script after all things successful and auth tv was successful

but when running the alexa-tv.py file i get the below error, im sure its something simple but can you help please?

Traceback (most recent call last): File "alexa-tv.py", line 15, in import fauxmo File "/Users/xxxxxxxxxx/Documents/amazon-alexa-lg-tv-master/ fauxmo.py", line 31, in import requests ImportError: No module named requests

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw4_ tNS7EX5qa189Yw72zjExsxb6hpks5tA3xggaJpZM4RERDT .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11#issuecomment-352175303, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw48B9oPGrZwSAUB1CcbAQiOe4f7Ekks5tA53ogaJpZM4RERDT .

stevena9475 commented 6 years ago

I’m using python 2.7.9

Sent from my iPhone

On 16 Dec 2017, at 11:00, Abid Khan notifications@github.com wrote:

It's looking for the module 'requests'. It can't find the module. Normally if it can't find it, you're missing it. You're using Python 2, right?

On Dec 16, 2017 3:39 AM, "stevena9475" notifications@github.com wrote:

Hi, if you referring to the requests file in the first steps this was done

Any other suggestions?

Sent from my iPhone

On 16 Dec 2017, at 08:49, Abid Khan notifications@github.com wrote:

Pip install requests

On Dec 16, 2017 1:16 AM, "stevena9475" notifications@github.com wrote:

Hi, Thanks for this. I got to starting the script after all things successful and auth tv was successful

but when running the alexa-tv.py file i get the below error, im sure its something simple but can you help please?

Traceback (most recent call last): File "alexa-tv.py", line 15, in import fauxmo File "/Users/xxxxxxxxxx/Documents/amazon-alexa-lg-tv-master/ fauxmo.py", line 31, in import requests ImportError: No module named requests

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw4_ tNS7EX5qa189Yw72zjExsxb6hpks5tA3xggaJpZM4RERDT .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11#issuecomment-352175303, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw48B9oPGrZwSAUB1CcbAQiOe4f7Ekks5tA53ogaJpZM4RERDT .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

akhan23wgu commented 6 years ago

What output did you get when you try installing the requests module?

On Dec 16, 2017 4:56 AM, "stevena9475" notifications@github.com wrote:

I’m using python 2.7.9

Sent from my iPhone

On 16 Dec 2017, at 11:00, Abid Khan notifications@github.com wrote:

It's looking for the module 'requests'. It can't find the module. Normally if it can't find it, you're missing it. You're using Python 2, right?

On Dec 16, 2017 3:39 AM, "stevena9475" notifications@github.com wrote:

Hi, if you referring to the requests file in the first steps this was done

Any other suggestions?

Sent from my iPhone

On 16 Dec 2017, at 08:49, Abid Khan notifications@github.com wrote:

Pip install requests

On Dec 16, 2017 1:16 AM, "stevena9475" notifications@github.com wrote:

Hi, Thanks for this. I got to starting the script after all things successful and auth tv was successful

but when running the alexa-tv.py file i get the below error, im sure its something simple but can you help please?

Traceback (most recent call last): File "alexa-tv.py", line 15, in import fauxmo File "/Users/xxxxxxxxxx/Documents/amazon-alexa-lg-tv-master/ fauxmo.py", line 31, in import requests ImportError: No module named requests

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw4_ tNS7EX5qa189Yw72zjExsxb6hpks5tA3xggaJpZM4RERDT .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/ issues/11#issuecomment-352175303, or mute the thread https://github.com/notifications/unsubscribe-auth/ APdw48B9oPGrZwSAUB1CcbAQiOe4f7Ekks5tA53ogaJpZM4RERDT .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/11#issuecomment-352178990, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw4zLEj12XgXMqpBcY7Y5lzsgh67dbks5tA6_tgaJpZM4RERDT .

stevena9475 commented 6 years ago

sorted the requests i run requirements earlier not requests.

I now have a new issue when running the python alexa-tv.py step

Traceback (most recent call last): File "alexa-tv.py", line 69, in u.init_socket() File "/Users/xxxxxxxxx/Documents/amazon-alexa-lg-tv-master/fauxmo.py", line 300, in init_socket dbg("Failed to initialize UPnP sockets:",e) TypeError: dbg() takes exactly 1 argument (2 given)

stevena9475 commented 6 years ago

Hi, do you have any suggestions as to what I can try?

Is it the version of python?

stevena9475 commented 6 years ago

below extract from requests: pip install requests Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Cleaning up...

stevena9475 commented 6 years ago

When running this: python alexa-tv.py, could not see new devices in alexa app Output: DEBUG:root:Failed to initialize UPnP sockets: dbg() takes exactly 1 argument (2 given) DEBUG:root:got local address of 192.168.0.52 DEBUG:root:UPnP broadcast listener: new device registered DEBUG:root:FauxMo device 'tv' ready on 192.168.0.52:52000 DEBUG:root:UPnP broadcast listener: new device registered DEBUG:root:FauxMo device 'volume' ready on 192.168.0.52:52002 DEBUG:root:UPnP broadcast listener: new device registered DEBUG:root:FauxMo device 'netflix' ready on 192.168.0.52:52003 DEBUG:root:UPnP broadcast listener: new device registered DEBUG:root:FauxMo device 'playback' ready on 192.168.0.52:52004 DEBUG:root:UPnP broadcast listener: new device registered DEBUG:root:FauxMo device 'plex' ready on 192.168.0.52:52001 DEBUG:root:Entering fauxmo polling loop

jadonv commented 6 years ago

i'm in the same boat. Everything went flawlessly running python 2.7.13 but won't show up when discovering devices. Any thoughts?

stevena9475 commented 6 years ago

i have been trying to figure this out but i am stumped! hoping that some dev guru can figure out what im missing :-(

pler commented 6 years ago

@jadonv there is an open issue for this (devices aren't showing up) here: https://github.com/akhan23wgu/amazon-alexa-lg-tv/issues/10

akhan23wgu commented 6 years ago

Closing - see #10 for similar issue.