startup warning (gtksourceview / modeline plugin: python error)

Bug #37295 reported by Andreas Mohr
10
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Hello,

yet another of my Dapper bugs (now 6 or so):

gedit seems to work IIRC, but displays the following:

$ gedit
ImportError: could not import gtksourceview
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/modelines.py", line 24, in ?
    class ModelinePlugin(gedit.Plugin):
AttributeError: 'module' object has no attribute 'Plugin'

** (gedit:4300): WARNING **: Could not load python module modelines

** (gedit:4300): CRITICAL **: gedit_plugin_update_ui: assertion `GEDIT_IS_PLUGI
N (plugin)' failed

** (gedit:4300): CRITICAL **: gedit_plugin_update_ui: assertion `GEDIT_IS_PLUGI
N (plugin)' failed

** (gedit:4300): CRITICAL **: gedit_plugin_update_ui: assertion `GEDIT_IS_PLUGI
N (plugin)' failed

Dapper Flight 6, current as of last Sunday

gedit 2.14.1-0ubuntu1
gedit-common 2.14.1-0ubuntu1
python2.4 2.4.2-1ubuntu3
libgtksourceview1.0-0 1.6.0-0ubuntu1

NOTE that this is an ex-Knoppix ex-Debian ex-Breezy now-Dapper system (ooooh the pain!!), so it might actually be something not properly handled by the upgrade mechanisms...

Thanks!

Andreas Mohr

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report. Does ist work if you once you install python-gnome2-desktop? If so, we should maybe add it not as a Dependency but as a Recommends or something.

Changed in gedit:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Andreas Mohr (andi) wrote :

Indeed, installing python-gnome2-desktop (which then installs the current-version package fixes the warning messages. Removing the relevant python2.4-gnome2-desktop package lets it appear again.

Revision history for this message
Daniel Holbach (dholbach) wrote :

will add a Recommends for next upload.

Changed in gedit:
status: Needs Info → Fix Committed
Revision history for this message
Daniel Holbach (dholbach) wrote :

 gedit (2.14.2-0ubuntu1) dapper; urgency=low
 .
   * New upstream release:
     - bugfixes to the external tools plugin (Malone: #34869)
     - bugfixes to the snippets plugin (Malone: #35613)
     - misc bugfixes
     - New and updated translations: vi, es, be, et, br, dz, ka.
   * debian/control.in:
     - Recommends: python-gnome2-desktop. (Malone: #37295)
   * debian/patches/02_autoconf.patch:
     - updated.

Changed in gedit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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