Bug 427188 - Pirut Crashes with "AttributeError: 'NoneType' object has no attribute 'samearch'"
Summary: Pirut Crashes with "AttributeError: 'NoneType' object has no attribute 'samea...
Keywords:
Status: CLOSED DUPLICATE of bug 421961
Alias: None
Product: Fedora
Classification: Fedora
Component: pirut
Version: 8
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-02 05:06 UTC by santhosh varma
Modified: 2008-01-02 14:26 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-01-02 14:26:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description santhosh varma 2008-01-02 05:06:47 UTC
From Bugzilla Helper:
User-Agent: Opera/9.24 (X11; Linux i686; U; en)

Description of problem:
Pirut when started crashes immediately. the dump of the error is attached.

Component: pirut
Summary: TBaa979ac4 priorities.py:88:exclude_hook:AttributeError: 'NoneType' 
object has no attribute 'samearch'

Traceback (most recent call last):
  File "/usr/sbin/pirut", line 483, in <module>
    main()
  File "/usr/sbin/pirut", line 479, in main
    pm.run()
  File "/usr/sbin/pirut", line 407, in run
    self.doRefresh()
  File "/usr/sbin/pirut", line 423, in doRefresh
    self.doRefreshRepos(self._onlyrepo)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 339, in 
doRefreshRepos
    self.reposSetup(pbar, thisrepo)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 303, in 
reposSetup
    self.doTsSetup()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 63, in doTsSetup
    return self._getTs()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 77, in _getTs
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 526, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 393, in 
_getSacks
    self.plugins.run('exclude')
  File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 169, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/priorities.py", line 88, in exclude_hook
    if opts.samearch:
AttributeError: 'NoneType' object has no attribute 'samearch'

Local variables in innermost frame:
conduit: <yum.plugins.MainPluginConduit instance at 0x9755fac>
commands: None
opts: None

Version-Release number of selected component (if applicable):
pirut-1.3.28-1.fc8 , kernel-2.6.23.1-42.fc8 

How reproducible:
Always


Steps to Reproduce:
1.Installed FC8 i386 version
2. updated yum and yum.conf as stated in the http://www.fedorafaq.org/ fc8 page
3. when starting pirut it crashes now. Yum works without any problems

Actual Results:
When pirut is started it immediately crashes.

Expected Results:
Pirut should have run normally asking for the cd source.

Additional info:

Comment 1 Jeremy Katz 2008-01-02 14:26:07 UTC

*** This bug has been marked as a duplicate of 421961 ***


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