[Yum] yum on Mandrake 10.0

Michael Stenner mstenner at ece.arizona.edu
Mon Apr 19 15:46:19 UTC 2004


On Sun, Apr 18, 2004 at 11:51:33PM -0400, seth vidal wrote:
> On Thu, 2004-04-15 at 10:35 -0600, Charles Curley wrote:
> 
> > I'd like to install yum on Mandrake 10.0. Given that Mandrake 10.0 has
> > rpm-4.2.2-7mdk, I figured yum-2.0.6-1 was in order. I get:
> > 
> > [root at taltos root]# yum -C list
> > Gathering header information file(s) from server(s)
> > Server: Mandrake 10.0 - i386 - Base
> > Traceback (most recent call last):
> >   File "/usr/bin/yum", line 30, in ?
> >     yummain.main(sys.argv[1:])
> >   File "/usr/share/yum/yummain.py", line 237, in main
> >     clientStuff.rpmdbNevralLoad(rpmDBInfo)
> >   File "/usr/share/yum/clientStuff.py", line 164, in rpmdbNevralLoad
> >     if not rpmdbdict.has_key((name, arch)):
> > TypeError: list objects are unhashable
> 
> is the mdk python patched in some odd way?
> 
> it's saying rpmdbdict is a list - which is, umm, very unlikely.

Actually, it's saying that some sub-object of (name, arch) is a list.
In order to check if rpmdbdict has that key, it needs to get that
item's hash.  For container types, this is usually done be recursively
calculating the hashes of sub-objects and combining them somehow (xor,
for example).  

I'm still surprised that there would be a significant language
difference between platforms.  I'm betting this is something subtle.
Maybe something gets built up as a list and then gets tuple-ized,
except it's not getting tuple-ized here?

					-Michael

-- 
  Michael D. Stenner                            mstenner at ece.arizona.edu
  ECE Department, the University of Arizona                 520-626-1619
  1230 E. Speedway Blvd., Tucson, AZ 85721-0104                 ECE 524G



More information about the Yum mailing list