On Thu, Mar 18, 2004 at 03:15:58PM -0500, Bob Drzyzgula wrote: > Apologies if this has been discussed before, I didn't > immediately find anything on Google, in the Red Hat > Knowlege base or Bugzilla. > > I'm getting an error when using Python to pull data > out of the RPM database. My actual program is more complex > than this, but I've narrowed it down to the following > simple example: > > When I run the following script: > > #!/usr/bin/python > import rpm > tn = rpm.tagnames > ts = rpm.TransactionSet() > mi = ts.dbMatch('name', 'termcap') > h = mi.next() > print h['name'] > print h['TRIGGERTYPE'] > > I get the following output: > > termcap > Traceback (most recent call last): > File "test.py", line 9, in ? > print h['TRIGGERTYPE'] > TypeError: unsupported type in header > > I'm developing on an RHEL 3.0 WS system fully up to > date with RHN, rpm 4.2.1 rel 4.4. But I have verified > it on a second RHEL 3.0 WS system, as well as on an RH > 9 system running rpm 4.2 rel 0.69, so I don't think it's > a corrupted database. If, on my main RHEL system, I trap > that TypeError and loop through all tags in all headers, > I find that it occurs in 197 headers, and only ever on > the TRIGGERTYPE tag. There is no TRIGGERTYPE tag in rpm. See rpm --querytags for the names of tags that might reasonably be queried. > > Any guesses what's going on? Is this a known issue? > Rather, an "unknown" issue ;-) 73 de Jeff -- Jeff Johnson ARS N3NPQ jbj@xxxxxxxxxx (jbj@xxxxxxx) Chapel Hill, NC _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list