Public bug reported:

Binary package hint: commit-tool

on Feisty.
commit-tool v 0.4-3build1
with python 2.5.1

the command
command:
$ /usr/bin/hgct
Traceback (most recent call last):
  File "/usr/bin/hgct", line 43, in <module>
    import main
  File "/usr/bin/hgct", line 27, in MyImport
    ret = imp.load_module(name, f, '', modules[name].descr)
  File "main.py", line 21, in <module>
  File "/usr/bin/hgct", line 31, in MyImport
    return origImport(name, globals, locals, fromlist)
  File "/usr/lib/python2.5/optparse.py", line 412, in <module>
    _builtin_cvt = { "int" : (_parse_int, _("integer")),
  File "/usr/lib/python2.5/gettext.py", line 581, in gettext
    return dgettext(_current_domain, message)
  File "/usr/lib/python2.5/gettext.py", line 545, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.5/gettext.py", line 480, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.5/gettext.py", line 437, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python2.5/gettext.py", line 132, in _expand_lang
    locale = normalize(locale)
  File "/usr/lib/python2.5/locale.py", line 327, in normalize
    norm_encoding = encodings.normalize_encoding(encoding)
AttributeError: 'module' object has no attribute 'normalize_encoding'


The solution is simple. See the diff below:

--- /usr/bin/gct        2007-01-15 23:23:04.000000000 +0100
+++ /usr/bin/gct        2007-07-17 00:10:48.000000000 +0200
@@ -1,3 +1,4 @@
 #!/usr/bin/env python2.5
 
 import tempfile, sys, imp, __builtin__
+from gettext import gettext


Please merge the fix in the package for feisty and next releases.

** Affects: commit-tool (Ubuntu)
     Importance: Undecided
         Status: New

-- 
AttributeError: 'module' object has no attribute 'normalize_encoding'
https://bugs.launchpad.net/bugs/126615
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to