[Yum] Problem with Yum 3.2.27, Help

Seth Vidal skvidal at fedoraproject.org
Wed May 5 05:27:30 UTC 2010



On Wed, 5 May 2010, Rohit Kumar Nayyar wrote:

> 
> Hi,
> 
>  
> 
> I am getting the following error in Yum 3.2.27, on OpenSuse 11.1; I have built this yum to work with Python
> 2.5.
> 
>  
> 
>     updated_pkg =  self.getInstalledPackageObject(updated)
> 
>   File "/data1/rkn/blyum/python/lib/python2.5/site-packages/yum/__init__.py", line 2608, in
> getInstalledPackageObject
> 
>     pkgs = self.rpmdb.searchPkgTuple(pkgtup)
> 
>   File "/data1/rkn/blyum/python/lib/python2.5/site-packages/yum/packageSack.py", line 114, in
> searchPkgTuple
> 
>     return self.searchNevra(name=n, arch=a, epoch=e, ver=v, rel=r)
> 
>   File "/data1/rkn/blyum/python/lib/python2.5/site-packages/yum/rpmsack.py", line 908, in searchNevra
> 
>     return self._search(name, epoch, ver, rel, arch)
> 
>   File "/data1/rkn/blyum/python/lib/python2.5/site-packages/yum/rpmsack.py", line 978, in _search
> 
>     mi = ts.dbMatch('name', name)
> 
> TypeError: unknown key type
>

if rpm.TransactionSet().dbMatch() doesn't have a key type of 'name' then 
something is _wrong_ with the rpm-python bindings most likely.

have you checked that with your distro? Might be a known bug.

-sv


More information about the Yum mailing list