ericpulvino / wemocontrol

Quick control scripts for Belkin's WEMO switch line.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attribute Errors

kmanan opened this issue · comments

After getting apache, sqlite 3 and a few other issues sorted, the python script keeps throwing attribute errors.

Traceback (most recent call last): File "/usr/lib/cgi-bin/wemo_control2.py", line 117, in <module> normal_output() File "/usr/lib/cgi-bin/wemo_control2.py", line 75, in normal_output all_state = wemo_backend.all_of(wemo_backend.wemo_dict) File "/home/pi/wemocontrol/wemo_backend.py", line 214, in all_of wemo_status,updated_ago = wemo_dict[wemo].read() File "/home/pi/wemocontrol/wemo_backend.py", line 144, in read result = wemo_state.select().where(wemo_state.wemo_name == self.shortname) File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 4458, in select query = SelectQuery(cls, *selection) File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 2696, in __init__ self.require_commit = self.database.commit_select AttributeError: 'str' object has no attribute 'commit_select'