Red Hat Bugzilla – Bug 91519
redhat-logviewer fails to load.
Last modified: 2007-04-18 12:53:58 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030509
Description of problem:
redhat-logviewer-0.9.0-2 fails to load with the following error message:
unable to translate from iso-8859-1 utf-8
Traceback (most recent call last):
File "/usr/share/redhat-logviewer/redhat-logviewer.py", line 75, in ?
LogViewerGui.LogViewerGui(width,height, allowConfigChanges, configFile)
File "/usr/share/redhat-logviewer/LogViewerGui.py", line 162, in __init__
File "/usr/share/redhat-logviewer/LogViewerGui.py", line 329, in
logClassInstance = LogFileClass.LogFileClass(key)
File "/usr/share/redhat-logviewer/LogFileClass.py", line 74, in __init__
File "/usr/share/redhat-logviewer/LogFileClass.py", line 140, in read_log
File "/usr/share/redhat-logviewer/LogBuffer.py", line 122, in
errorMessage = _("Unable to read log file with proper encoding.")
NameError: global name '_' is not defined
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.redhat-logviewer fails to load
Actual Results: redhat-logviewer failed to load.
Expected Results: redhat-logviewer would have loaded successfully.
I suspect that pygtk2-1.99.16-1/2 is causing the failure, as redhat-logviewer
successfully loaded before I upgraded pygtk2.
Yep. It looks like the number of arguments expected by GtkTextBuffer.insert()
A fix has been added to pygtk2-1.99.16-3 so it doesn't traceback. Instead, it
says that the length argument has been deprecated. It will appear in rawhide
soon. I'll remove the length argument in redhat-logviewer the next time I
*** Bug 97158 has been marked as a duplicate of this bug. ***