trying to install python 3.4 and create a virtualenv for it on Ubuntu 14.04. Fails with error:
==> default: Error: sh: 1: virtualenv-3.4: not found
==> default: sh: 1: /srv/django-envs/pymania/bin/pip: not found
==> default: sh: 1: /srv/django-envs/pymania/bin/pip: not found
==> default:
==> default: Error: /Stage[main]/Python-env/Python::Virtualenv[/srv/django-projects/pymania]/Exec[python_virtualenv_/srv/django-envs/pymania]/returns: change from notrun to 0 failed: sh: 1: virtualenv-3.4: not found
This is the Puppet file:
class python-env {
class { 'python':
version => '3.4',
pip => true,
dev => true,
virtualenv => true,
}
python::virtualenv { '/srv/django-projects/pymania' :
ensure => present,
version => '3.4',
systempkgs => true,
distribute => false,
venv_dir => '/srv/django-envs/pymania',
owner => 'root',
group => 'root',
cwd => '/srv/django-projects/pymania',
timeout => 0,
require => File['/srv/django-envs/']
}
file { "/srv/django-projects/":
ensure => "directory",
}
file { "/srv/django-envs/":
ensure => "directory",
}
}
trying to install python 3.4 and create a virtualenv for it on Ubuntu 14.04. Fails with error:
==> default: Error: sh: 1: virtualenv-3.4: not found
==> default: sh: 1: /srv/django-envs/pymania/bin/pip: not found
==> default: sh: 1: /srv/django-envs/pymania/bin/pip: not found
==> default:
==> default: Error: /Stage[main]/Python-env/Python::Virtualenv[/srv/django-projects/pymania]/Exec[python_virtualenv_/srv/django-envs/pymania]/returns: change from notrun to 0 failed: sh: 1: virtualenv-3.4: not found
This is the Puppet file:
class python-env {
class { 'python':
version => '3.4',
pip => true,
dev => true,
virtualenv => true,
}
python::virtualenv { '/srv/django-projects/pymania' :
ensure => present,
version => '3.4',
systempkgs => true,
distribute => false,
venv_dir => '/srv/django-envs/pymania',
owner => 'root',
group => 'root',
cwd => '/srv/django-projects/pymania',
timeout => 0,
require => File['/srv/django-envs/']
}
file { "/srv/django-projects/":
ensure => "directory",
}
file { "/srv/django-envs/":
ensure => "directory",
}
}