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

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

Closed
lucianofara opened this issue Sep 10, 2017 · 7 comments
Closed

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

lucianofara opened this issue Sep 10, 2017 · 7 comments

Comments

@lucianofara
Copy link

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

akhan23wgu commented Sep 10, 2017 via email

@jvance325
Copy link

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

@lucianofara
Copy link
Author

lucianofara commented Sep 11, 2017

I tried the version 2.7.13 and 3.6.2 on win10

@akhan23wgu
Copy link
Owner

@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: efpe#7

@d0x
Copy link

d0x commented Sep 21, 2017

On OSX i had the same error because my python version was without poll: See google/pyringe#14 (comment)

brew reinstall python --with-poll

should fix it.

@zhdenny
Copy link

zhdenny commented Oct 9, 2017

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

No update from op - closing.

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

5 participants