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

Launchpad Bug Tracker 654867 at bugs.launchpad.net
Fri Nov 5 18:20:11 UTC 2010


This bug was fixed in the package gedit - 2.30.4-1ubuntu2

---------------
gedit (2.30.4-1ubuntu2) natty; urgency=low

  * debian/patches/02_gconf_import.patch:
    - correct gconf import, thanks Jason Conti and LaserJock (lp: #654867)
 -- Sebastien Bacher <seb128 at ubuntu.com>   Fri, 05 Nov 2010 19:10:00 +0100

** Changed in: gedit (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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: Fix Released

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