Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Issue when running alexa-tv.py #11

Closed
stevena9475 opened this issue Dec 16, 2017 · 13 comments
Closed

Issue when running alexa-tv.py #11

stevena9475 opened this issue Dec 16, 2017 · 13 comments

Comments

@stevena9475
Copy link

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
Copy link
Owner

akhan23wgu commented Dec 16, 2017 via email

@stevena9475
Copy link
Author

stevena9475 commented Dec 16, 2017 via email

@akhan23wgu
Copy link
Owner

akhan23wgu commented Dec 16, 2017 via email

@stevena9475
Copy link
Author

stevena9475 commented Dec 16, 2017 via email

@akhan23wgu
Copy link
Owner

akhan23wgu commented Dec 16, 2017 via email

@stevena9475
Copy link
Author

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
Copy link
Author

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

Is it the version of python?

@stevena9475
Copy link
Author

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
Copy link
Author

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
Copy link

jadonv commented Jan 4, 2018

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
Copy link
Author

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

@pler
Copy link

pler commented Jan 4, 2018

@jadonv there is an open issue for this (devices aren't showing up) here: #10

@akhan23wgu
Copy link
Owner

Closing - see #10 for similar issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants