AttributeError: 'module' object has no attribute 'normalize_encoding'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
commit-tool (Ubuntu) |
Fix Released
|
Medium
|
Luca Falavigna | ||
Feisty |
Fix Released
|
Medium
|
Luca Falavigna | ||
Gutsy |
Fix Released
|
Medium
|
Luca Falavigna |
Bug Description
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_
File "main.py", line 21, in <module>
File "/usr/bin/hgct", line 31, in MyImport
return origImport(name, globals, locals, fromlist)
File "/usr/lib/
_builtin_cvt = { "int" : (_parse_int, _("integer")),
File "/usr/lib/
return dgettext(
File "/usr/lib/
codeset=
File "/usr/lib/
mofiles = find(domain, localedir, languages, all=1)
File "/usr/lib/
for nelang in _expand_lang(lang):
File "/usr/lib/
locale = normalize(locale)
File "/usr/lib/
norm_encoding = encodings.
AttributeError: 'module' object has no attribute 'normalize_
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.
Changed in commit-tool: | |
assignee: | nobody → kitterman |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in commit-tool: | |
assignee: | kitterman → dktrkranz |
Thank you for your bug report and for your patch