Bug 234100 - Both Software Manager and yum (or yumex) crash before doing anything
Summary: Both Software Manager and yum (or yumex) crash before doing anything
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pirut
Version: 6
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-03-27 00:49 UTC by Michel West
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-03-27 03:19:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michel West 2007-03-27 00:49:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Description of problem:
No matter what options or operation is being performed Both Software Manager and yum (or yumex) crash before doing anything:

Component: Software Manager
Summary: TBb09601ff packages.py:35:comparePoEVR:AttributeError: 'NoneType' object has no attribute 'epoch'

Traceback (most recent call last):
  File "/usr/sbin/pirut", line 334, in _apply
    self.applyChanges(self.mainwin)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 559, in applyChanges
    self.checkDeps(mainwin)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 328, in checkDeps
    (result, msgs) = self.buildTransaction()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 442, in buildTransaction
    self.plugins.run('postresolve', rescode=rescode, restring=restring)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 153, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fedorakmod.py", line 273, in postresolve_hook
    newKernels + installedKernels)
  File "/usr/lib/yum-plugins/fedorakmod.py", line 222, in installAllKmods
    rAvaModules = resolveVersions(avaModules)
  File "/usr/lib/yum-plugins/fedorakmod.py", line 152, in resolveVersions
    elif sameName == None:
  File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in __eq__
    if comparePoEVR(self, other) == 0 and self.arch == other.arch and self.name == other.name:
  File "/usr/lib/python2.4/site-packages/yum/packages.py", line 35, in comparePoEVR
    (e2, v2, r2) = (po2.epoch, po2.ver, po2.rel)
AttributeError: 'NoneType' object has no attribute 'epoch'

Local variables in innermost frame:
po2: None
v1: 1.0.9755
e1: 0
r1: 2.2.6.19_1.2911.6.5.fc6
po1: kmod-nvidia - 1.0.9755-2.2.6.19_1.2911.6.5.fc6.i586


Version-Release number of selected component (if applicable):
pirut-1.2.8-1.fc6

How reproducible:
Always


Steps to Reproduce:
1.try to install, update or remove a package
2.
3.

Actual Results:
crashes with:
Component: yumex
Version: 1.2.2
Summary: TBb09601ff packages.py:35:comparePoEVR:AttributeError: 'NoneType' object has no attribute 'epoch'

Traceback (most recent call last):
  File "/usr/share/yumex/yumexmain.py", line 137, in on_pkgProcess_clicked
    self.on_queueProcess_clicked( widget )
  File "/usr/share/yumex/yumexmain.py", line 174, in on_queueProcess_clicked
    rc = self.action.process_package_queue( pkgs, doAll )
  File "/usr/lib/python2.4/site-packages/yumex/yumexBase.py", line 928, in process_package_queue
    rc, msg = self.yumexbase.processPkgs( pkgs, doAll )
  File "/usr/lib/python2.4/site-packages/yumex/yumexBase.py", line 560, in processPkgs
    return self.buildTransaction()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 442, in buildTransaction
    self.plugins.run('postresolve', rescode=rescode, restring=restring)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 153, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fedorakmod.py", line 273, in postresolve_hook
    newKernels + installedKernels)
  File "/usr/lib/yum-plugins/fedorakmod.py", line 222, in installAllKmods
    rAvaModules = resolveVersions(avaModules)
  File "/usr/lib/yum-plugins/fedorakmod.py", line 152, in resolveVersions
    elif sameName == None:
  File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in __eq__
    if comparePoEVR(self, other) == 0 and self.arch == other.arch and self.name == other.name:
  File "/usr/lib/python2.4/site-packages/yum/packages.py", line 35, in comparePoEVR
    (e2, v2, r2) = (po2.epoch, po2.ver, po2.rel)
AttributeError: 'NoneType' object has no attribute 'epoch'

Local variables in innermost frame:
po2: None
v1: 1.0.9755
e1: 0
r1: 2.2.6.19_1.2911.6.5.fc6
po1: kmod-nvidia - 1.0.9755-2.2.6.19_1.2911.6.5.fc6.i586


Expected Results:
update to occur

Additional info:

Comment 1 Jeremy Katz 2007-03-27 03:19:36 UTC
This is a bug in the fedorakmod plugin that's been worked around in yum 3.0.5
that's currently in updates-testing (will be pushed to updates in the next day
or so)


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