sliim / puppet-pyenv Goto Github PK
View Code? Open in Web Editor NEWPuppet module for pyenv installation and configuration
License: Apache License 2.0
Puppet module for pyenv installation and configuration
License: Apache License 2.0
I'm getting some errors with the following:
include pyenv
pyenv::install { $username: }
pyenv::compile { "compile 3.4.2 ${username}":
user => $username,
python => '3.4.2',
global => true,
}
pip {"default modules for ${username}-3.4.2":
ensure => 'installed',
user => $username,
package => [ 'fabric', 'runsnakerun', 'autopep8', 'bpython', 'pep8', 'pycallgraph', 'redis', 'repoze.profile' ],
package_version => [ '>=1.10.0', '>=2.0.4', '>=1.0.4', '>=0.13.1', '>=1.5.1', '>=1.0.1', '>=2.10.3', '>=2.0' ],
pyenv_root => "/home/${username}/.pyenv",
python_version => '3.4.2',
}
==> vagrant.dev: Debug: Executing '/bin/su - vagrant -c PYENV_VERSION=3.4.2 /home/vagrant/.pyenv/shims/pip freeze'
==> vagrant.dev: Error: /Stage[main]/Dev::Python/Pip[default modules for vagrant-3.4.2]: Could not evaluate: Execution of '/bin/su - vagrant -c PYENV_VERSION=3.4.2 /home/vagrant/.pyenv/shims/pip freeze' returned 127: -bash: /home/vagrant/.pyenv/shims/pip: No such file or directory
I'm checked the manifests and I haven't seen anywhere that pip was installed. Was this expected ?
Thanks
When pip is run, it checks to see if it is up to date. If it is not, it will print a notice suggesting that you upgrade to stderr. This notice is being processed with a regex in the pip type, which results in a non-match (nil
) that breaks the subsequent processing.
Hi
I'm getting the following error with your script.
However, python is correctly installed afterwards.
I'm using the latest version of your script.
this is how i call your script:
include pyenv
class pyenv_install() {
# install pythonz
pyenv::install { 'vagrant': }
pyenv::compile { 'compile python':
user => 'vagrant',
python => '3.4.0',
global => true,
}
}
Any ideas?
Run bash command `pyenv install 3.4.0`
err: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/Exec[pyenv::compi
le vagrant 3.4.0]/returns: change from notrun to 0 failed: undefined method `exi
tstatus' for #<String:0x7f4799c0ff70>
notice: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/Exec[pyenv::re
hash vagrant 3.4.0]: Dependency Exec[pyenv::compile vagrant 3.4.0] has failures:
true
warning: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/Exec[pyenv::r
ehash vagrant 3.4.0]: Skipping because of failed dependencies
notice: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/File[pyenv::gl
obal vagrant]: Dependency Exec[pyenv::compile vagrant 3.4.0] has failures: true
warning: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/File[pyenv::g
lobal vagrant]: Skipping because of failed dependencies
notice: Finished catalog run in 325.84 seconds
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
puppet apply --color=false --detailed-exitcodes /tmp/vagrant-puppet/manifests/va
grant.pp || [ $? -eq 2 ]
Stdout from the command:
notice: /Stage[main]/Init/Exec[update-apt]/returns: executed successfully
notice: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]/ensure: en
sure changed 'stopped' to 'running'
notice: /Stage[main]/Git::Clone/Exec[add_to_known_hosts]/returns: executed succe
ssfully
Run bash command `pyenv install 3.4.0`
err: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/Exec[pyenv::compi
le vagrant 3.4.0]/returns: change from notrun to 0 failed: undefined method `exi
tstatus' for #<String:0x7f4799c0ff70>
notice: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/Exec[pyenv::re
hash vagrant 3.4.0]: Dependency Exec[pyenv::compile vagrant 3.4.0] has failures:
true
warning: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/Exec[pyenv::r
ehash vagrant 3.4.0]: Skipping because of failed dependencies
notice: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/File[pyenv::gl
obal vagrant]: Dependency Exec[pyenv::compile vagrant 3.4.0] has failures: true
warning: /Stage[main]/Pyenv_install/Pyenv::Compile[compile python]/File[pyenv::g
lobal vagrant]: Skipping because of failed dependencies
notice: Finished catalog run in 325.84 seconds
On every run it's doing exec { "pyenv::rehash ${user} ${python}":
pyenv::compile { "compile python ${version} for ${user}":
user => 'pyuser',
python => '2.7.9',
global => true,
}
Run bash command
pyenv rehash
Notice: /Stage[main]/Profile_python::Pyenv/Pyenv::Compile[compile python 2.7.9 for pyuser]/Exec[pyenv::rehash pyuser 2.7.9]/returns: executed successfully
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.