Bug 250745 - Crashes on Startup: Error Type: <type 'exceptions.AttributeError'>
Summary: Crashes on Startup: Error Type: <type 'exceptions.AttributeError'>
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex
Version: 7
Hardware: i386
OS: Linux
low
high
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-03 13:07 UTC by Greg Douglas
Modified: 2007-11-30 22:12 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2007-08-05 16:35:00 UTC


Attachments (Terms of Use)

Description Greg Douglas 2007-08-03 13:07:29 UTC
Description of problem:

Just upgraded from FC6.  When launching Yumex, it completes Yum Setup, then
Builds Package List, and crashes with the following message:

Error Type: <type 'exceptions.AttributeError'> 
Error Value: Updates instance has no attribute 'obsoletes' 
  File : /usr/share/yumex/yumex.py , line 778, in <module>
    mainApp = YumexApplication() 
  File : /usr/share/yumex/yumex.py , line 447, in __init__
    self.setupYum() 
  File : /usr/share/yumex/yumex.py , line 482, in setupYum
    self.yumbase.populatePackages(['installed','updates','available']) 
  File : /usr/share/yumex/packages.py , line 78, in populatePackages
    self._packages[flt] = [p for p in self._getPackages(flt)] 
  File : /usr/share/yumex/packages.py , line 175, in _getPackages
    obsoletes = self.up.getObsoletesTuples( newest=1 ) 
  File : /usr/lib/python2.5/site-packages/rpmUtils/updates.py , line 553, in
getObsoletesTuples
    obslist = self.obsoletes.keys() 



Version-Release number of selected component (if applicable): yumex-1.9.6-1.0.fc7


How reproducible: Every Time


Steps to Reproduce:
1. Launch yumex from Gnome: Applications > System Tools > Yum Extender
2.
3.
  
Actual results:
As indicated above

Expected results:
Worked fine in FC6

Additional info:

Comment 1 Tim Lauridsen 2007-08-03 13:18:17 UTC
try this as root:
yum update yum yumex
yum clean all
yumex

Comment 2 Greg Douglas 2007-08-03 14:32:15 UTC
Tried it, and still the same problem.  

There were no updates to yum and yumex.

Thanks.

Comment 3 Tim Lauridsen 2007-08-03 14:44:17 UTC
Weird:
The latest yumex in fedora-update is 1.9.10.

what does 
yumex --version

&

yum --version 

says.

Comment 4 Greg Douglas 2007-08-03 18:00:09 UTC
Indeed, I have just found a problem with my updates.repo file and have just
updated the system.

I am now at yumex version yumex-1.9.10-2.0.fc7

I have also replaced both yumex config files to the .rpmnew versions.

Unfortunately, I am still getting this:

Error Type: <type 'exceptions.AttributeError'> 
Error Value: Updates instance has no attribute 'obsoletes' 
  File : /usr/share/yumex/yumex.py , line 796, in <module>
    mainApp = YumexApplication() 
  File : /usr/share/yumex/yumex.py , line 459, in __init__
    self.setupYum() 
  File : /usr/share/yumex/yumex.py , line 494, in setupYum
    self.yumbase.populatePackages(['installed','updates','available']) 
  File : /usr/share/yumex/packages.py , line 83, in populatePackages
    self._packages[flt] = [p for p in self._getPackages(flt)] 
  File : /usr/share/yumex/packages.py , line 181, in _getPackages
    obsoletes = self.up.getObsoletesTuples( newest=1 ) 
  File : /usr/lib/python2.5/site-packages/rpmUtils/updates.py , line 553, in
getObsoletesTuples
    obslist = self.obsoletes.keys() 


Comment 5 Greg Douglas 2007-08-03 20:13:00 UTC
OK, I've got it fixed.  I also replaced the yum.conf to the newer
yum.conf.rpmnew, and then ran another yum update.

All appears well now

Thanks, and this can be closed.


Note You need to log in before you can comment on or make changes to this bug.