KeyError in "self._inv_dict[id]" (sql.py)

Bug #511407 reported by Siegfried Gevatter
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Invalid
Undecided
Siegfried Gevatter

Bug Description

Hi
I'm very curious about Zeitgeist so I pulled the latest revision, compiled, installed and ran the thing. The problem is that gnome-activity-journal seem to find events (there are a few bars at the bottom that are higher than others) but no events are shown.

I'm on Ubuntu 9.10 (64bit).
I just pulled from Lauchpad:
- gnome-activity-journal (rev460)
- zeitgeist (rev 1306)
- fungtk (rev15)

Compiled and installed zeitgeist and fungtk without problem.

When zeitgeist-deamon starts, it prints:
INFO:zeitgeist.sql:Using database: /home/niklas/.local/share/zeitgeist/activity.sqlite
DEBUG:zeitgeist.extension:Loading extension 'Blacklist'
DEBUG:zeitgeist.blacklist:No existing blacklist config found
DEBUG:root:Checking for another running instance...
DEBUG:root:No running instances found.
INFO:root:Starting Zeitgeist service...
DEBUG:root:Updating database with new Recently Used Documents items
DEBUG:zeitgeist.engine:Inserted 27 events in 0.164585s

gnome-activity-journal fails 'sudo setup.py install' (but thats another story since it can be run from the source folder I pulled via bzr).
In the main interface, the bar-diagram-thing at the bottom shows that there are events (some bars are higher than others) but clicking on one of them shows nothing.

This is the output from the shell when I run gnome-activity-journal:
Tracker disabled.
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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://gedit.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://gedit.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://openoffice.org-base.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://geany.desktop'

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 86, in GetEvents
    in_signature="(xx)a("+constants.SIG_EVENT+")a("+constants.SIG_EVENT+")u",
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 125, in get_events
    if event.id not in events:
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/main.py", line 90, in _get_event_from_row
    event.payload = row["payload"] or "" # default payload: empty string
  File "/usr/local/share/zeitgeist/_zeitgeist/engine/sql.py", line 263, in value
    return self._inv_dict[id]
KeyError: u'application://geany.desktop'

Thanks
Nikke

Changed in gnome-zeitgeist:
assignee: nobody → Siegfried Gevatter (rainct)
affects: gnome-zeitgeist → zeitgeist
Changed in zeitgeist:
milestone: none → 0.3.3
Revision history for this message
Nikke (nmellegard) wrote :

Update:
I removed the two files activity.sqlite and datasources.pickle from $HOME/.local/share/zeitgeist and not gnome-activity-journal works again!

Perhaps these were created with an earlier version of zeitgeist?

Cheers
/N

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Oh, that may well be. I'm closing this for now, but please re-open it if the same problem happens again.

Thank you for your feedback!

Changed in zeitgeist:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.