iancmcc/ouimeaux

Error when trying to run wemo on ubuntu

Closed this issue · 5 comments

Hi guys
I have followed the install and there was no issues but when i try to run it i am getting the below error

adam@AI:~$ wemo
Traceback (most recent call last):
File "/usr/local/bin/wemo", line 9, in
load_entry_point('ouimeaux==0.8', 'console_scripts', 'wemo')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/ouimeaux-0.8-py2.7.egg/ouimeaux/cli.py", line 7, in
from .environment import Environment
File "/usr/local/lib/python2.7/dist-packages/ouimeaux-0.8-py2.7.egg/ouimeaux/environment.py", line 16, in
from ouimeaux.subscribe import SubscriptionRegistry
File "/usr/local/lib/python2.7/dist-packages/ouimeaux-0.8-py2.7.egg/ouimeaux/subscribe.py", line 7, in
from gevent.wsgi import WSGIServer
ImportError: No module named wsgi

Try using gevent version 1.2.2. Maybe yours got updated to 1.3.0 and that version is breaking ouimeaux.

I had a similar error; following reiinakano/xcessiv#63 I edited ~/.local/lib/python2.7/site-packages/ouimeaux/subscribe.py, changing

from gevent.wsgi import WSGIServer

to

from gevent.pywsgi import WSGIServer

which fixed it.

Thanks ToyotaCorollary! Your fix/hack worked for me too.

gst commented

@iancmcc
would you consider a PR for changing this ? Thx.