Re: Problem with Yum 3.2.27, Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have built yum 3.2.27 to use its own private copy of python 2.5.4
rpm-python-4.4.2.4

Devel tools installed:-
rpm-devel-4.4.2.3-20.3.x86_64.rpm
python-devel-2.6.0-2.19.x86_64.rpm

What version of rpm-python will be safe to go with ?


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


On Wed, May 5, 2010 at 10:47 AM, Rohit Kumar Nayyar <nayyar.rohit@xxxxxxxxx> 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.

 

 

Config time: 0.022

Yum Version: 3.2.27

COMMAND: yum -C -c yum.conf update

Installroot: /

Setting up Package Sacks

repo                                                                      24/24

pkgsack time: 0.161

Reading Local RPMDB

rpmdb time: 0.000

Setting up Update Process

Updating Everything

Building updates object

up:Obs Init time: 0.002

putting yast2-trans-en_US in simple update

putting yast2-registration in simple update

putting yast2-installation in simple update

putting yast2-backup in simple update

putting yast2-nfs-common in simple update

putting yast2-mail in simple update

up:simple updates time: 0.001

up:obs time: 0.000

up:condense time: 0.000

updates time: 0.236

Traceback (most recent call last):

  File "/data1/rkn/blyum/yum/usr/bin/yum", line 29, in <module>

    yummain.user_main(sys.argv[1:], exit_code=True)

  File "/data1/rkn/blyum/python/lib/python2.5/yummain.py", line 254, in user_main

    errcode = main(args)

  File "/data1/rkn/blyum/python/lib/python2.5/yummain.py", line 109, in main

    result, resultmsgs = base.doCommands()

  File "/data1/rkn/blyum/python/lib/python2.5/cli.py", line 356, in doCommands

    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)

  File "/data1/rkn/blyum/python/lib/python2.5/yumcommands.py", line 204, in doCommand

    return base.updatePkgs(extcmds)

  File "/data1/rkn/blyum/python/lib/python2.5/cli.py", line 625, in updatePkgs

    self.update()

  File "/data1/rkn/blyum/python/lib/python2.5/site-packages/yum/__init__.py", line 3179, in update

    tx_return.extend(self.update(po=self.getPackageObject(new)))

  File "/data1/rkn/blyum/python/lib/python2.5/site-packages/yum/__init__.py", line 3326, in update

    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


_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux