Bug 621706

Summary: pirut crashes on startup
Product: Red Hat Enterprise Linux 5 Reporter: andrel
Component: pirutAssignee: James Antill <james.antill>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: bkearney
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-06 16:14:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
python crash stack trace none

Description andrel 2010-08-05 21:09:23 UTC
Created attachment 436983 [details]
python crash stack trace

Description of problem: pirut crashes on startup

Version-Release number of selected component (if applicable):
pirut-1.3.28-17.el5

How reproducible:  Always reproducible from here.

Steps to Reproduce:
1. Type "sudo pirut".
2. Admire the crash traceback.
3. As instructed, file a bug report on bugzilla.
  
Actual results: pirut crashes

Expected results: pirut letting me fiddle with my packages

Additional info: 

I'm attaching a copy of the strack trace.

bash-3.2$ uname -a
Linux alrhel 2.6.18-194.8.1.el5 #1 SMP Wed Jun 23 10:52:51 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

bash-3.2$ lsb_release -a
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Release:        5.5
Codename:       Tikanga

Comment 1 James Antill 2010-08-06 16:14:37 UTC
 From the bottom of the traceback:

  File "/usr/lib/yum-plugins/replace.py", line 37, in config_hook
    parser.add_option('--replace-with', dest='replace_with', action='store',
AttributeError: 'NoneType' object has no attribute 'add_option'

Local variables in innermost frame:
conduit: <yum.plugins.ConfigPluginConduit instance at 0x15069518>
parser: None


...this is a bug in the plugin you are using.