Bug 91519

Summary: redhat-logviewer fails to load.
Product: [Retired] Red Hat Raw Hide Reporter: Alexander Farley <afarley>
Component: redhat-logviewerAssignee: Tammy Fox <tammy.c.fox>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: naba
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-23 22:11:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Farley 2003-05-23 17:57:45 UTC
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__
    self.initial_read_of_file()
  File "/usr/share/redhat-logviewer/LogViewerGui.py", line 329, in
initial_read_of_file
    logClassInstance = LogFileClass.LogFileClass(key)
  File "/usr/share/redhat-logviewer/LogFileClass.py", line 74, in __init__
    self.read_log(self.prefName)
  File "/usr/share/redhat-logviewer/LogFileClass.py", line 140, in read_log
    self.buffer.insert_into_buffer_at_offset(iter, line)
  File "/usr/share/redhat-logviewer/LogBuffer.py", line 122, in
insert_into_buffer_at_offset
    errorMessage = _("Unable to read log file with proper encoding.")
NameError: global name '_' is not defined



Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.start redhat-logviewer
2.redhat-logviewer fails to load
3.
    

Actual Results:  redhat-logviewer failed to load.

Expected Results:  redhat-logviewer would have loaded successfully.

Additional info:

I suspect that pygtk2-1.99.16-1/2 is causing the failure, as redhat-logviewer
successfully loaded before I upgraded pygtk2.

Comment 1 Tammy Fox 2003-05-23 21:03:31 UTC
Yep. It looks like the number of arguments expected by GtkTextBuffer.insert()
has changed.

Comment 2 Tammy Fox 2003-05-23 22:11:54 UTC
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
rebuild it.

Comment 3 Tammy Fox 2003-06-17 04:29:10 UTC
*** Bug 97158 has been marked as a duplicate of this bug. ***