puppet-python icon indicating copy to clipboard operation
puppet-python copied to clipboard

/usr/bin/yum -d 0 -e 0 -y list python3

Open sbelenky opened this issue 9 years ago • 5 comments

I'm trying to upgrade Python. Here is the manifest:

class { 'python' :
  version    => '3',
  pip        => false,
  #dev        => true,
  #virtualenv => true,
  #gunicorn   => true,
}

I've tried various things. I get this error:

/usr/bin/yum -d 0 -e 0 -y list python3

What can I do to fix it?

sbelenky avatar Aug 15 '15 12:08 sbelenky

@sbelenky Whats the Operating system and Operating system version?

petems avatar Sep 02 '15 15:09 petems

Hi, I have a same problem. I'm trying to python 2.6.6 to 2.7.

OS: Oracle EL 6.6

class { 'python' : version => '2.7', }

[root@puppettest ~]# puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER: validate_re(): "2.7" does not match ["system", "pypy", "3"] at /etc/puppet/modules/python/manifests/init.pp:84 on node puppettest.ej.local Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

busayr avatar Sep 16 '15 14:09 busayr

I have a same problem, to install python version 2.7

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: validate_re(): "2.7" does not match ["system", "pypy", "3"]

fndiaz avatar Oct 14 '15 14:10 fndiaz

you need to add puppetlabs/stdlib to modules. maybe we can make a Vagrantfile and add stdlib module as dependency?

https://forge.puppet.com/puppetlabs/stdlib

cihann avatar Jun 21 '16 21:06 cihann

If this is a missing dependency, then installing from the forge with puppet shouldn't see this because of the dependencies declared here.

If this problem is arising from installing from the repo directly, perhaps the appropriate fix is to make the dependency list more accessible by putting it in the readme? Adding a Vagrantfile seems like a fix that would only cover users deploying with vagrant, and I'm not sure that is what people are asking about here.

7yl4r avatar May 15 '17 15:05 7yl4r