zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #02153
[Bug 598666] Re: Error when trying items
So When I tried to get events of the last 3 days I had this error
---------------------------------------
Zeitgeist keyerror
seif@Wumbo:~/Projects/elmntry-sezen$ python src/main.py
Error from Zeitgeist engine: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/local/share/zeitgeist/_zeitgeist/engine/remote.py", line 253, in FindEvents
event_templates, storage_state, num_events, result_type, sender))
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 394, in find_events
return self._find_events(1, *args)
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 384, in _find_events
result = self.get_events(ids=[row[0] for row in result], sender=sender)
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 184, in get_events
events[event.id].append_subject(self._get_subject_from_row(row))
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 156, in _get_subject_from_row
getattr(self, "_" + field).value(row["subj_" + field]))
File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 449, in value
return self._inv_dict[id]
KeyError: 36
----------------------------------------------
I looked into the DB and found in event table 5 events with subj_interpretation 36 although no such one existed.
** Summary changed:
- Error when trying to fetch all items in one query
+ Error when trying items
--
Error when trying items
https://bugs.launchpad.net/bugs/598666
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
Status in Zeitgeist Framework: Incomplete
Bug description:
When i try to fetch all items in one query i get
Error from Zeitgeist engine: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/local/share/zeitgeist/_zeitgeist/engine/remote.py", line 254, in FindEvents
event_templates, storage_state, num_events, result_type, sender))
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 378, in find_events
return self._find_events(1, *args)
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 366, in _find_events
return self.get_events(rows=result, sender=sender)
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 188, in get_events
events[event.id].append_subject(self._get_subject_from_row(row))
File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 160, in _get_subject_from_row
getattr(self, "_" + field).value(row["subj_" + field]))
File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 422, in value
return self._inv_dict[id]
KeyError: 138
This looks serious
References