akhan23wgu / amazon-alexa-lg-tv

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

AttributeError: module 'select' has no attribute 'poll' #1

Closed lucianofara closed 6 years ago

lucianofara commented 6 years ago

When I run: python alexa-tv.py

Error: Traceback (most recent call last): File "alexa-tv.py", line 67, in p = fauxmo.poller() File "fauxmo.py", line 67, in init self.poller = select.poll() AttributeError: module 'select' has no attribute 'poll'

akhan23wgu commented 6 years ago

What version of python are you running? "Python -v" to find out.

On Sep 10, 2017 4:40 PM, "lucianofara" notifications@github.com wrote:

When I run: python alexa-tv.py

Error: Traceback (most recent call last): File "alexa-tv.py", line 67, in p = fauxmo.poller() File "fauxmo.py", line 67, in init self.poller = select.poll() AttributeError: module 'select' has no attribute 'poll'

— 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/1, or mute the thread https://github.com/notifications/unsubscribe-auth/APdw42nKan9I1Jh260AJsdNhg1LABbm3ks5shGVMgaJpZM4PSetz .

jvance325 commented 6 years ago

I am having the same issue actually. I have a fresh install of version 2.7.13 on the machine.

lucianofara commented 6 years ago

I tried the version 2.7.13 and 3.6.2 on win10

akhan23wgu commented 6 years ago

@jvance325 are you running on Windows as well?

Poll isn't available in Windows. You will need to use Linux or OS X. @efpe suggested to use using the latest Fauxmo from Pypi. https://pypi.python.org/pypi/fauxmo See: https://github.com/efpe/amazon-alexa-lg-tv/issues/7

d0x commented 6 years ago

On OSX i had the same error because my python version was without poll: See https://github.com/google/pyringe/issues/14#issuecomment-57856541

brew reinstall python --with-poll

should fix it.

zhdenny commented 6 years ago

Not sure if this helps people but.....You can just fire these Commands manually from command line in Windows. For example, the command below will Turn on the TV.

python LGTV.py On

akhan23wgu commented 6 years ago

No update from op - closing.