Bug 208627 - TypeError: unknown key type for rpm.RPMTAG_BASENAMES in get_rpm_nvr_by_file_path
Summary: TypeError: unknown key type for rpm.RPMTAG_BASENAMES in get_rpm_nvr_by_file_path
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John Dennis
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-29 19:07 UTC by Dave Malcolm
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 0.50
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-03 18:07:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Malcolm 2006-09-29 19:07:56 UTC
Description of problem:
/var/log/setroubleshoot/setroubleshootd.log is full of lines like the following:

2006-09-29 13:49:47,937 [plugin.ERROR] failed to retrieve rpm info for [unknown]
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/setroubleshoot/util.py", line 117, in
get_rpm_nvr_by_file_path
    mi = ts.dbMatch(rpm.RPMTAG_BASENAMES, path)
TypeError: unknown key type


Version-Release number of selected component (if applicable):
setroubleshoot-0.45-1
rpm-python-4.4.2-31

Comment 1 Dave Malcolm 2006-09-29 21:20:39 UTC
Seems to still be a problem with:
setroubleshoot-0.47-1
rpm-python-4.4.2-32


Comment 2 John Dennis 2006-09-29 21:22:56 UTC
Ack: I know what the fix is

Comment 3 John Dennis 2006-10-03 18:07:52 UTC
we were passing 'unknown' to get_rpm_nvr_by_file_path() because of these lines
in Plugin.py, remove them, everything should be properly testing for None instead.

<         if self.path is None:
<             self.path = _("[unknown]")



Comment 4 John Dennis 2006-10-04 18:02:46 UTC
*** Bug 209333 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.