johnjmedway@gmail.com
2014-Aug-06 21:24 UTC
[Puppet Users] Puppet's yumhelper.py vs. other pythons on the system
When trying to add packages to a CentOS 6 system I am getting chronic errors of the form: Error: Could not get latest version: Execution of '/usr/local/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py' returned 1: <type 'exceptions.AttributeError'> Error: /Stage[main]/Jenkins_packages::Centos/Package[subversion]/ensure: change from 1.6.11-10.el6_5 to latest failed: Could not get latest version: Execution of '/usr/local/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py' returned 1: <type 'exceptions.AttributeError'> whether manually running "puppet agent --test" or letting cron do it for me. This seems to be because the default root path in CentOS includes /usr/local/bin before /usr/bin, and thus I am getting a user-needed other python version that is a mismatch with the python version that puppet seems to want to play with. When I run: "puppet agent --test --path /sbin:/bin:/usr/sbin:/usr/bin:/root/bin" things seem to work without complaint. I tried to set that path in /etc/puppet/puppet.conf, but it doesn't seem to work. Should that work? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/45991a27-d387-498a-ab8c-975e387db468%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.