2017-10-23 20:29 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003481CentOS-5yumpublic2009-09-10 20:20
ReporterCharlie Brady 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
Product Version5.3 
Target VersionFixed in Version 
Summary0003481: yum install openmotif22 dies with 'TypeError: unsubscriptable object'
Descriptionbash-3.2$ sudo yum install openmotif22
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: centos.mirror.iweb.ca
 * extras: centos.mirror.iweb.ca
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package openmotif22.i386 0:2.2.3-18 set to be updated
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 145, in main
    (result, resultmsgs) = base.buildTransaction()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 647, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 696, in resolveDeps
    CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 779, in _resolveRequires
    thisneeds = self._checkInstall(txmbr)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 851, in _checkInstall
    provs = self.tsInfo.getProvides(*req)
  File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 432, in getProvides
    result.update(self.getNewProvides(name, flag, version))
  File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 414, in getNewProvides
    for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 300, in getProvides
    return self._computeAggregateDictResult("getProvides", name, flags, version)
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 470, in _computeAggregateDictResult
    sackResult = apply(method, args)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 861, in getProvides
    return self._search("provides", name, flags, version)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 837, in _search
    for pkg in self.searchFiles(name, strict=True):
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 586, in searchFiles
    self._sql_pkgKey2po(rep, cur, pkgs)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 470, in _sql_pkgKey2po
    pkg = self._packageByKey(repo, ob['pkgKey'])
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413, in _packageByKey
    po = self.pc(repo, cur.fetchone())
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68, in __init__
    self._read_db_obj(db_obj)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in _read_db_obj
    setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object
bash-3.2$
TagsNo tags attached.
Attached Files

-Relationships
related to 0003467newkbsingh@karan.org Missing package in for 5.2 to 5.3 upgrade 
related to 0003486newkbsingh@karan.org Can't install eclipse 
parent of 0003573closedrange yum crashes when trying to update perl 
has duplicate 0003621closedkbsingh@karan.org yum update crashes since automatic update to 5.3 
has duplicate 0003623closedkbsingh@karan.org update error 
has duplicate 0003660closedkbsingh@karan.org 'yum' crashes when attempting to update package 'file'. 
has duplicate 0003665closedkbsingh@karan.org Upgrade of "file" packages using package updater fails 
has duplicate 0003786closedkbsingh@karan.org yum unsubscriptable and dies 
has duplicate 0003831closedkbsingh@karan.org yum update for python fails everytime with stack trace 
has duplicate 0003859closed Error received when performng a software update 
has duplicate 0003893acknowledgedkbsingh@karan.org When attempting to add Development Tools, pirut crashes 
+Relationships

-Notes

~0009028

Charlie Brady (reporter)

Same traceback was reported in:

http://bugs.centos.org/view.php?id=3467

~0009034

range (administrator)

Have you updated yum without updating the rest of CentOS? How do you expect to install openmotif22 with only extras and addons enabled (see the output of yum above)?

Works fine here.

~0009045

Charlie Brady (reporter)

> Have you updated yum without updating the rest of CentOS?

No. System is fully updated.

> How do you expect to install openmotif22 with only extras and addons enabled

Repos fixed and the same traceback still occurs.

bash-3.2$ rpm -q yum
yum-3.2.19-18.el5.centos
bash-3.2$

~0009046

Charlie Brady (reporter)

Here's an upstream report:

https://bugzilla.redhat.com/show_bug.cgi?id=484728

~0009047

Charlie Brady (reporter)

"yum clean metadata" allows openmotif22 install to complete.

~0009053

Charlie Brady (reporter)

> "yum clean metadata" allows openmotif22 install to complete.

Nevertheless this is still a yum bug. It shouldn't crash.

~0009054

michal (reporter)

I bumped into the same issue after just 'yum update'. That looked like follows:
....
Resolving Dependencies
--> Running transaction check
---> Package perl.i386 4:5.8.8-18.el5_3.1 set to be updated
---> Package perl-suidperl.i386 4:5.8.8-18.el5_3.1 set to be updated
filelists.sqlite.bz2 | 4.0 MB 00:04
filelists.sqlite.bz2 | 343 kB 00:00
filelists.xml.gz | 3.4 MB 00:30
filelists.xml.gz | 469 kB 00:01
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
....
(and the same as in the original report).

"yum clean metadata" indeed helped. Some misunderstandings with sqlite?

~0009901

bigbert007 (reporter)

Not sure if mine is a duplicate or not. I only had trouble installing the python package. All other packages install fine.

~0009902

Evolution (administrator)

It's a dupe.
+Notes

-Issue History
Date Modified Username Field Change
2009-04-02 20:05 Charlie Brady New Issue
2009-04-02 21:41 Charlie Brady Note Added: 0009028
2009-04-03 08:28 range Note Added: 0009034
2009-04-03 09:19 range Relationship added related to 0003467
2009-04-03 09:20 range Relationship added related to 0003486
2009-04-03 17:56 Charlie Brady Note Added: 0009045
2009-04-03 17:59 Charlie Brady Note Added: 0009046
2009-04-03 18:04 Charlie Brady Note Added: 0009047
2009-04-03 20:50 Charlie Brady Note Added: 0009053
2009-04-03 21:33 michal Note Added: 0009054
2009-05-15 08:33 range Relationship added has duplicate 0003621
2009-05-15 08:33 range Status new => acknowledged
2009-05-15 08:33 range Relationship added parent of 0003573
2009-05-18 08:44 range Relationship added has duplicate 0003623
2009-06-03 08:59 range Relationship added has duplicate 0003660
2009-06-05 08:48 range Relationship added has duplicate 0003665
2009-09-10 20:14 range Relationship added has duplicate 0003786
2009-09-10 20:14 range Relationship added has duplicate 0003831
2009-09-10 20:18 bigbert007 Note Added: 0009901
2009-09-10 20:20 Evolution Note Added: 0009902
2009-09-10 20:20 Evolution Status acknowledged => closed
2009-09-10 20:20 Evolution Resolution open => no change required
2009-09-21 22:36 range Relationship added has duplicate 0003859
2009-10-06 19:40 tru Relationship added has duplicate 0003890
2009-10-06 19:41 tru Relationship deleted has duplicate 0003890
2009-10-07 17:02 toracat Relationship added has duplicate 0003893
+Issue History