Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

No module named requests #12

Open
twaltersr opened this issue Dec 8, 2017 · 2 comments
Open

No module named requests #12

twaltersr opened this issue Dec 8, 2017 · 2 comments

Comments

@twaltersr
Copy link

C:\Users\Yoga\Desktop\TB>c:\Python27\python.exe alexa-tv.py
Traceback (most recent call last):
File "alexa-tv.py", line 13, in
import fauxmo
File "C:\Users\Yoga\Desktop\TB\fauxmo.py", line 31, in
import requests
ImportError: No module named requests

@twaltersr
Copy link
Author

i was able to run py -m pip install requests and get past the error No module named requests.

Now getting this

C:\Users\Yoga\Desktop\TB>c:\Python27\python.exe alexa-tv.py
Traceback (most recent call last):
File "alexa-tv.py", line 47, in
p = fauxmo.poller()
File "C:\Users\Yoga\Desktop\TB\fauxmo.py", line 67, in init
self.poller = select.poll()
AttributeError: 'module' object has no attribute 'poll'

@henrik
Copy link

henrik commented Jan 12, 2018

Thank you. I got the same errors on my Mac.

First I installed "requests" much like you said: sudo pip install requests

Then to fix the poll error, I had to reinstall a Python with (apparently a bit broken on macOS) polling enabled based on this:

brew install python --with-poll  # Install Python using Homebrew.
hash -r python  # To fix Python after reinstalling

Now I instead get this error, though: #2

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

2 participants