Package: gaupol
Version: 0.12.3-2
Severity: normal
*** Please type your report below this line ***
For some time now whenever I open "Tools->Configure Spell Check" I get
an error window (see the attached traceback).
Digging into the code, it turns out there's a locale (ns_ZA)
in /usr/share/gaupol/codes/locales.txt that isn't registered
in /usr/share/gaupol/codes/iso_639.xml.
As a quick workaround I deleted the ns_ZA line from locales.txt and it's
working fine.
I'm using lenny, so this might be fixed in a newer version. But I
couldn't find any related bug reports in upstream or here and can't
install a newer version atm. Hope someone else can confirm this.
-- System Information:
Debian Release: 5.0.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to es_AR.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gaupol depends on:
ii python 2.5.2-3 An interactive high-level
object-o
ii python-central 0.6.8 register and build utility
for Pyt
ii python-glade2 2.12.1-6 GTK+ bindings: Glade
support
ii python-gobject 2.14.2-2 Python bindings for the
GObject li
ii python-gtk2 2.12.1-6 Python bindings for the GTK
+ widge
Versions of packages gaupol recommends:
ii iso-codes 3.5.1-1 ISO language, territory,
currency,
ii python-chardet 1.0.1-1.1 universal character
encoding detec
ii python-enchant 1.4.2-3+lenny1 spellchecking library for
Python
Versions of packages gaupol suggests:
ii mplayer 1:1.0.rc2svn20080706-0.1lenny2 The Ultimate Movie Player
For Linu
ii vlc 0.8.6.h-4+lenny2.3 multimedia player and
streamer
-- no debconf information
Traceback
File: usr/lib/python2.5/site-packages/gaupol/gtk/agents/text.py
Line: 40
In: on_configure_spell_check_activate
dialog = gaupol.gtk.LanguageDialog(self.window)
File: usr/lib/python2.5/site-packages/gaupol/base/contractual.py
Line: 43
In: inner_wrapper
value = function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/base/contractual.py
Line: 59
In: inner_wrapper
return function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/gtk/dialogs/language.py
Line: 45
In: __init__
self._init_tree_view()
File: usr/lib/python2.5/site-packages/gaupol/base/contractual.py
Line: 43
In: inner_wrapper
value = function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/gtk/dialogs/language.py
Line: 79
In: _init_tree_view
self._populate_store(store)
File: usr/lib/python2.5/site-packages/gaupol/base/contractual.py
Line: 43
In: inner_wrapper
value = function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/gtk/dialogs/language.py
Line: 122
In: _populate_store
append(locale)
File: usr/lib/python2.5/site-packages/gaupol/util.py
Line: 168
In: inner_wrapper
return function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/gtk/dialogs/language.py
Line: 119
In: append
name = gaupol.locales.code_to_name(locale)
File: usr/lib/python2.5/site-packages/gaupol/util.py
Line: 73
In: wrapper
return function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/locales.py
Line: 75
In: code_to_name
language = code_to_language(code)
File: usr/lib/python2.5/site-packages/gaupol/util.py
Line: 73
In: wrapper
return function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/locales.py
Line: 64
In: code_to_language
return gaupol.languages.code_to_name(code[:2])
File: usr/lib/python2.5/site-packages/gaupol/util.py
Line: 73
In: wrapper
return function(*args, **kwargs)
File: usr/lib/python2.5/site-packages/gaupol/languages.py
Line: 51
In: code_to_name
return gaupol.i18n.dgettext("iso_639", languages[code])
KeyError: 'ns'
Platform
System: Linux
Desktop environment: GNOME
Versions
Gaupol: 0.12.3
Python: 2.5.2
GTK: 2.12.12
PyGTK: 2.12.1
PyEnchant: 1.4.2
Universal Encoding Detector: 1.0.1