After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 697359 - dashboard plugin is broken, won't load
dashboard plugin is broken, won't load
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Seif Lotfy
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-05 14:28 UTC by Adam Dingle
Modified: 2019-03-23 20:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Port patch (18.34 KB, patch)
2013-04-07 13:30 UTC, Seif Lotfy
accepted-commit_now Details | Review

Description Adam Dingle 2013-04-05 14:28:25 UTC
Currently the Dashboard plugin is broken and won't load:

Traceback (most recent call last):
  • File "/usr/local/lib/gedit/plugins/dashboard/__init__.py", line 23 in <module>
    from .dashboard import Dashboard
  • File "/usr/local/lib/gedit/plugins/dashboard/dashboard.py", line 23 in <module>
    from zeitgeist.client import ZeitgeistClient
ImportError: No module named 'zeitgeist'

I suspect this plugin was written to access Zeitgeist via Python 2.  According to the Zeitgeist developers, the latest Zeitgeist should be accessible from Python 3 via gobject-introspection:

https://bugs.launchpad.net/zeitgeist/+bug/1165000

I have the latest Zeitgeist release (0.9.10) and have built it with gobject-introspection, but I'm still seeing the error above.
Comment 1 Ignacio Casal Quinteiro (nacho) 2013-04-05 14:42:25 UTC
This plugin is waiting the developers from zeitgeist to port it to python 3. Same happens with synctex.
Comment 2 Seif Lotfy 2013-04-07 13:30:06 UTC
Created attachment 240884 [details] [review]
Port patch

This patch does the job but depends on the patch from bug #697487 do to mixing libzeitgeist and libzeitgeist2 leads to crashes
Comment 3 Ignacio Casal Quinteiro (nacho) 2013-04-07 13:37:54 UTC
Review of attachment 240884 [details] [review]:

See the minor comment.

::: plugins/dashboard/dashboard/dashboard.py
@@ +22,2 @@
 from gi.repository import GObject, Gedit, Gtk, Gio, GLib, GdkPixbuf, GtkSource
+from gi.repository import Zeitgeist

Put it in the same line as the others?
Comment 4 Seif Lotfy 2013-04-07 13:59:29 UTC
If I do that I would be over the 80 char limit as set by the pep8
Do you want it like that?
Comment 5 Ignacio Casal Quinteiro (nacho) 2013-04-07 14:03:00 UTC
oh!, then no push it as it is.
Comment 6 Seif Lotfy 2013-04-14 13:47:02 UTC
Ok pushed to master with 20d860b6500e8f9a8143be4df306225e206664d6