Code Monkey home page Code Monkey logo

puppet-pyenv's People

Contributors

cedriclecoz avatar lucaswiman avatar pierrerambaud avatar salimane avatar sliim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

puppet-pyenv's Issues

pip not available after installation

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

Pip version check breaks pip query command

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.

undefined method exitstatus'

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

Rehash on every run

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.