[Zeitgeist] [Question #115724]: zeitgeitst-datahub showing: IndexError: list index out of range
Question #115724 on Zeitgeist Framework changed: https://answers.edge.launchpad.net/zeitgeist/+question/115724 Linked to bug: #598577 https://bugs.edge.launchpad.net/bugs/598577 .desktop file parser not resilient enough -- You received this question notification because you are a member of Zeitgeist Framework Team, which is an answer contact for Zeitgeist Framework. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
Re: [Zeitgeist] [Question #115724]: zeitgeitst-datahub showing: IndexError: list index out of range
Question #115724 on Zeitgeist Framework changed: https://answers.edge.launchpad.net/zeitgeist/+question/115724 Status: Open = Needs information Siegfried Gevatter requested for more information: Hi. It looks like you have a malformed .desktop file. I've pushed a change (revision 1506) for zeitgeist-datahub to ignore such errors. Can you please confirm that this fixes the problem? -- You received this question notification because you are a member of Zeitgeist Framework Team, which is an answer contact for Zeitgeist Framework. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [Bug 598577] [NEW] .desktop file parser not resilient enough
Public bug reported: I got the code from bzr, the last revision from the log is 1505. After I installed zeitgeist I ran: python zeitgeist-daemon.py python zeitgeist-datahub.py In different terminals. zeitgeist-daemon seems to capture events correctly but there is something wrong with zeitgeist-datahub, here is the terminal output: = FROM: python zeitgeist-daemon.py = DEBUG:zeitgeist.engine:daemon is configured to run with these extensions: ['_zeitgeist.engine.extensions.blacklist.Blacklist', '_zeitgeist.engine.extensions.datasource_registry.DataSourceRegistry'] INFO:zeitgeist.sql:Using database: /home/mario/.local/share/zeitgeist/activity.sqlite DEBUG:zeitgeist.sql:Core schema is good. DB loaded in 1.78217887878ms DEBUG:zeitgeist.extension:Loading extension 'Blacklist' DEBUG:zeitgeist.blacklist:No existing blacklist config found DEBUG:zeitgeist.extension:Loading extension 'DataSourceRegistry' DEBUG:zeitgeist.datasource_registry:Loaded data-source data from /home/mario/.local/share/zeitgeist/datasources.pickle DEBUG:root:Checking for another running instance... DEBUG:root:No running instances found. INFO:root:Starting Zeitgeist service... = FROM: python zeitgeist-datahub.py = DEBUG:root:Updating database with new Recently Used Documents items Traceback (most recent call last): File zeitgeist-datahub.py, line 108, in _update_db_async events = self._sources_queue[0].get_items() File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/zeitgeist_base.py, line 81, in get_items return self._get_items() File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/datasources/recent.py, line 293, in _get_items desktopfile = self._find_desktop_file_for_application(application) File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/datasources/recent.py, line 265, in _find_desktop_file_for_application line.split(=, 1)[-1].strip().split()[0] == \ IndexError: list index out of range What am I doing wrong? Initially, from ppa packages on two different computers, GAJ did not show any entries, just pinned items. I ran these commands because I saw the answer to question #99109, no luck with any version (ppa or bazar). Thanks in advanced. ** Affects: zeitgeist Importance: Low Assignee: Siegfried Gevatter (rainct) Status: In Progress ** Changed in: zeitgeist Importance: Undecided = Low ** Changed in: zeitgeist Status: New = In Progress ** Changed in: zeitgeist Milestone: None = 0.4.1 ** Changed in: zeitgeist Assignee: (unassigned) = Siegfried Gevatter (rainct) -- .desktop file parser not resilient enough https://bugs.launchpad.net/bugs/598577 You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Framework. Status in Zeitgeist Framework: In Progress Bug description: I got the code from bzr, the last revision from the log is 1505. After I installed zeitgeist I ran: python zeitgeist-daemon.py python zeitgeist-datahub.py In different terminals. zeitgeist-daemon seems to capture events correctly but there is something wrong with zeitgeist-datahub, here is the terminal output: = FROM: python zeitgeist-daemon.py = DEBUG:zeitgeist.engine:daemon is configured to run with these extensions: ['_zeitgeist.engine.extensions.blacklist.Blacklist', '_zeitgeist.engine.extensions.datasource_registry.DataSourceRegistry'] INFO:zeitgeist.sql:Using database: /home/mario/.local/share/zeitgeist/activity.sqlite DEBUG:zeitgeist.sql:Core schema is good. DB loaded in 1.78217887878ms DEBUG:zeitgeist.extension:Loading extension 'Blacklist' DEBUG:zeitgeist.blacklist:No existing blacklist config found DEBUG:zeitgeist.extension:Loading extension 'DataSourceRegistry' DEBUG:zeitgeist.datasource_registry:Loaded data-source data from /home/mario/.local/share/zeitgeist/datasources.pickle DEBUG:root:Checking for another running instance... DEBUG:root:No running instances found. INFO:root:Starting Zeitgeist service... = FROM: python zeitgeist-datahub.py = DEBUG:root:Updating database with new Recently Used Documents items Traceback (most recent call last): File zeitgeist-datahub.py, line 108, in _update_db_async events = self._sources_queue[0].get_items() File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/zeitgeist_base.py, line 81, in get_items return self._get_items() File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/datasources/recent.py, line 293, in _get_items desktopfile = self._find_desktop_file_for_application(application) File
Re: [Zeitgeist] [Question #115724]: zeitgeitst-datahub showing: IndexError: list index out of range
Question #115724 on Zeitgeist Framework changed: https://answers.edge.launchpad.net/zeitgeist/+question/115724 Status: Needs information = Open Mario Marín gave more information on the question: No, it doesn't. Here is the new output for python zeitgeist-datahub.py: = FROM: python zeitgeist-datahub.py = DEBUG:root:Updating database with new Recently Used Documents items WARNING:zeitgeist.logger.datasources.recent:Corrupt .desktop file; Python traceback: list index out of range = ... the terminal shows the last line another 18 times. = The terminal output from: FROM: python zeitgeist-daemon.py is the same. I saw you reported a bug ¿should I post the terminal outputs and move the discussion there? -- You received this question notification because you are a member of Zeitgeist Framework Team, which is an answer contact for Zeitgeist Framework. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
Re: [Zeitgeist] [Question #115724]: zeitgeitst-datahub showing: IndexError: list index out of range
Question #115724 on Zeitgeist Framework changed: https://answers.edge.launchpad.net/zeitgeist/+question/115724 Status: Open = Answered Siegfried Gevatter proposed the following answer: But do the items show up now? (the error message is supposed to be displayed; although I've changed it now to print the name of the affected file; if you look at them I think they'll have a line like Exec= without anything after the equal sign). -- You received this question notification because you are a member of Zeitgeist Framework Team, which is an answer contact for Zeitgeist Framework. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
Re: [Zeitgeist] [Question #115724]: zeitgeitst-datahub showing: IndexError: list index out of range
Question #115724 on Zeitgeist Framework changed: https://answers.edge.launchpad.net/zeitgeist/+question/115724 Status: Answered = Solved Mario Marín confirmed that the question is solved: Thanks Siegfried Gevatter, that solved my question. -- You received this question notification because you are a member of Zeitgeist Framework Team, which is an answer contact for Zeitgeist Framework. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [Bug 598666] [NEW] Error when trying to fetch all items in one query
Public bug reported: 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 ** Affects: zeitgeist Importance: Undecided Status: New -- Error when trying to fetch all items in one query 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: New 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 ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
Re: [Zeitgeist] [Question #115724]: zeitgeitst-datahub showing: IndexError: list index out of range
Question #115724 on Zeitgeist Framework changed: https://answers.edge.launchpad.net/zeitgeist/+question/115724 Siegfried Gevatter posted a new comment: Great! If you want you can fix the files or remove them but this shouldn't affect Zeitgeist. Thank you for your report and helping improve Zeitgeist. -- You received this question notification because you are a member of Zeitgeist Framework Team, which is an answer contact for Zeitgeist Framework. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [Question #115724]: Status of bug #598577 changed to 'Fix Committed' in Zeitgeist Framework
Bug #598577 status changed in Zeitgeist Framework: In Progress = Fix Committed https://bugs.edge.launchpad.net/zeitgeist/+bug/598577 .desktop file parser not resilient enough This bug is linked to #115724. zeitgeitst-datahub showing: IndexError: list index out of range https://answers.edge.launchpad.net/zeitgeist/+question/115724 -- You received this question notification because you are a member of Zeitgeist Framework Team, which is an answer contact for Zeitgeist Framework. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [Bug 598577] Re: .desktop file parser not resilient enough
** Changed in: zeitgeist Status: In Progress = Fix Committed -- .desktop file parser not resilient enough https://bugs.launchpad.net/bugs/598577 You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Framework. Status in Zeitgeist Framework: Fix Committed Bug description: I got the code from bzr, the last revision from the log is 1505. After I installed zeitgeist I ran: python zeitgeist-daemon.py python zeitgeist-datahub.py In different terminals. zeitgeist-daemon seems to capture events correctly but there is something wrong with zeitgeist-datahub, here is the terminal output: = FROM: python zeitgeist-daemon.py = DEBUG:zeitgeist.engine:daemon is configured to run with these extensions: ['_zeitgeist.engine.extensions.blacklist.Blacklist', '_zeitgeist.engine.extensions.datasource_registry.DataSourceRegistry'] INFO:zeitgeist.sql:Using database: /home/mario/.local/share/zeitgeist/activity.sqlite DEBUG:zeitgeist.sql:Core schema is good. DB loaded in 1.78217887878ms DEBUG:zeitgeist.extension:Loading extension 'Blacklist' DEBUG:zeitgeist.blacklist:No existing blacklist config found DEBUG:zeitgeist.extension:Loading extension 'DataSourceRegistry' DEBUG:zeitgeist.datasource_registry:Loaded data-source data from /home/mario/.local/share/zeitgeist/datasources.pickle DEBUG:root:Checking for another running instance... DEBUG:root:No running instances found. INFO:root:Starting Zeitgeist service... = FROM: python zeitgeist-datahub.py = DEBUG:root:Updating database with new Recently Used Documents items Traceback (most recent call last): File zeitgeist-datahub.py, line 108, in _update_db_async events = self._sources_queue[0].get_items() File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/zeitgeist_base.py, line 81, in get_items return self._get_items() File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/datasources/recent.py, line 293, in _get_items desktopfile = self._find_desktop_file_for_application(application) File /home/mario/zeitgeist/zeitgeist/zeitgeist/../_zeitgeist/loggers/datasources/recent.py, line 265, in _find_desktop_file_for_application line.split(=, 1)[-1].strip().split()[0] == \ IndexError: list index out of range What am I doing wrong? Initially, from ppa packages on two different computers, GAJ did not show any entries, just pinned items. I ran these commands because I saw the answer to question #99109, no luck with any version (ppa or bazar). Thanks in advanced. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp