Bug 91519 - redhat-logviewer fails to load.
Summary: redhat-logviewer fails to load.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: redhat-logviewer
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tammy Fox
QA Contact:
URL:
Whiteboard:
: 97158 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-05-23 17:57 UTC by Alexander Farley
Modified: 2007-04-18 16:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-05-23 22:11:54 UTC
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.