[Bug 654867] Re: gedit python console NameError when changing colors

Sebastien Bacher seb128 at ubuntu.com
Thu Nov 4 15:25:33 GMT 2010


Thank you for your work there, is there any chance you could send that
patch back to GNOME as well by opening a bug on
http://bugzilla.gnome.org?

** Also affects: gedit
   Importance: Undecided
       Status: New

-- 
gedit python console NameError when changing colors
https://bugs.launchpad.net/bugs/654867
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in Light-Weight Text Editor for Gnome: New
Status in “gedit” package in Ubuntu: Confirmed

Bug description:
Binary package hint: gedit

In Maverick gedit-2.30.3-1ubuntu1:

When configuring the Python Console plugin, changing the "Command Color" results in a python NameError:

Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/pythonconsole/config.py", line 129, in on_colorbutton_command_color_set
    self.config.color_command = colorbutton.get_color().to_string()
  File "/usr/lib/gedit-2/plugins/pythonconsole/config.py", line 59, in <lambda>
    lambda self, value: self.gconf_set_str(GCONF_KEY_COMMAND_COLOR, value))
  File "/usr/lib/gedit-2/plugins/pythonconsole/config.py", line 81, in gconf_set_str
    v = PythonConsoleConfig.gconf.Value(gconf.VALUE_STRING)
NameError: global name 'gconf' is not defined

This can be fixed by including the prefix PythonConsoleConfig. to two of the gconf references in /usr/lib/gedit-2/plugins/pythonconsole/config.py . A patch will be attached.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gedit 2.30.3-1ubuntu1 [modified: usr/lib/gedit-2/plugins/pythonconsole/config.py]
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon Oct  4 17:51:49 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gedit





More information about the Ubuntu-sponsors mailing list