Issue #11380 has been updated by James Turnbull.
Seems to work fine on 2.7 as a point of reference: <pre> $ python --version Python 2.7 $ /usr/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py Loaded plugins: fastestmirror, presto, refresh-packagekit _pkg ypbind 3 1.32 3.fc14 i686 _pkg openswan 0 2.6.33 3.fc14 i686 </pre> ---------------------------------------- Bug #11380: yum.rb should hardcode python2.4 on rhel5 systems, or allow configuration option to override https://projects.puppetlabs.com/issues/11380 Author: Jo Rhett Status: Needs More Information Priority: Normal Assignee: Jo Rhett Category: package Target version: Affected Puppet version: 2.6.12 Keywords: Branch: On rhel5 systems yum only works with the system-installed python2.4 binary. If any other python version is in the path, you get the following error: <pre> Wed Dec 14 00:52:13 +0000 2011 Puppet (err): Could not prefetch package provider 'yum': Execution of '/usr/local/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py' returned 1: _pkg NetworkManager.i386 0 CentOS Base 1:0.7.0-13.el5 (snip) _pkg NetworkManager.x86_64 0 CentOS Base 1:0.7.0-13.el5 <type 'exceptions.AttributeError'> </pre> On redhat systems it makes no sense to call python unqualified praying that any given python in the path will work. "/usr/bin/python2.4" will always work. A much better option would be to allow the python to be called as a configuration option. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
