[Yum] yum-3.1.7 TypeError bug

Christoph Thiel cthiel at suse.de
Fri May 4 14:24:01 UTC 2007


On Fri, May 04, 2007 at 10:08:11AM -0400, seth vidal wrote:
> On Fri, 2007-05-04 at 15:34 +0700, Fajar A. Nugraha wrote:
> > Fajar A. Nugraha wrote:
> > > Tim Lauridsen wrote:
> > >   
> > >> Hi.
> > >>
> > >> yum-utils 1.1.3 has been released.
> > >>
> > >>     
> > > ... And yum-priorities is WORKING again !!!
> > > Thanks :)
> > >
> > > Using yum-3.1.7, yum-utils-1.1.3
> > >
> > >   
> > But apparently an old yum-3.1 bug is back
> > 
> > # yum -d9 -y install yum-skip-broken yum-allowdowngrade
> > Loading "priorities" plugin
> > Running "config" handler for "priorities" plugin
> > Yum Version: 3.1.7
> > COMMAND: yum -d9 -y install yum-skip-broken yum-allowdowngrade
> > Installroot: /
> > Ext Commands:
> > 
> >    yum-skip-broken
> >    yum-allowdowngrade
> > Setting up Install Process
> > Parsing package install arguments
> > Setting up Package Sacks
> > 
> > <=== output truncated ====>
> > 
> > processing qtcurve-gtk2
> > processing neon
> >    yum-allowdowngrade.noarch 0:1.1.3-1.fan
> > Resolving Dependencies
> > 1178267444.44
> > --> Running transaction check
> > ---> Package yum-allowdowngrade.noarch 0:1.1.3-1.fan set to be updated
> > Checking deps for yum-allowdowngrade.noarch 0-1.1.3-1.fan - u
> > looking for (u'yum', u'GE', (u'0', u'3.1', None)) as a requirement of
> > yum-allowdowngrade.noarch 0-1.1.3-1.fan - u
> > Traceback (most recent call last):
> >   File "/usr/bin/yum", line 29, in <module>
> >     yummain.main(sys.argv[1:])
> >   File "/usr/share/yum-cli/yummain.py", line 135, in main
> >     (result, resultmsgs) = base.buildTransaction()
> >   File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 548, in
> > buildTransaction
> > 
> >   File "depsolve.py", line 794, in resolveDeps
> >   File "depsolve.py", line 773, in _mytsCheck
> >   File "depsolve.py", line 933, in _checkInstall
> >   File "depsolve.py", line 692, in _provideToPkg
> >   File "rpmsack.py", line 386, in whatProvides
> >   File "rpmsack.py", line 145, in searchProvides
> >   File "rpmsack.py", line 122, in searchPrco
> > TypeError: unknown key type
> 
> 
> 
> what version of rpm, rpm-python and which distro?
> thanks

Looks like the problem we were seeing on SUSE lately. Try attached patch to
work around it, until it's fixed in rpm-python.

(You should also apply the 2nd patch, yum-install.patch, to make sure you
get a sane trace. The PLI reference looks totally odd to me.)


Best,
Christoph
-- 
Christoph Thiel, Tech. Project Management, Research & Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-3.1.7.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20070504/59eb4c5e/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-install.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20070504/59eb4c5e/attachment-0003.bin 


More information about the Yum mailing list