Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a virtualenv dependency. Getting "Error: sh: 1: virtualenv: not found" #23

Closed
gertvdijk opened this issue Mar 11, 2014 · 4 comments
Closed

Comments

@gertvdijk
Copy link

On a clean system after dealing with #21 locally:

Notice: /Stage[main]/Puppetboard/Vcsrepo[/srv/puppetboard/puppetboard]/ensure: Creating repository from present
Notice: /Stage[main]/Puppetboard/Vcsrepo[/srv/puppetboard/puppetboard]/ensure: created
Error: sh: 1: virtualenv: not found
sh: 1: /srv/puppetboard/virtenv-puppetboard/bin/pip: not found
sh: 1: /srv/puppetboard/virtenv-puppetboard/bin/pip: not found

Error: /Stage[main]/Puppetboard/Python::Virtualenv[/srv/puppetboard/virtenv-puppetboard]/Exec[python_virtualenv_/srv/puppetboard/virtenv-puppetboard]/returns: change from notrun to 0 failed: sh: 1: virtualenv: not found
sh: 1: /srv/puppetboard/virtenv-puppetboard/bin/pip: not found
sh: 1: /srv/puppetboard/virtenv-puppetboard/bin/pip: not found

Notice: /Stage[main]/Puppetboard/Python::Virtualenv[/srv/puppetboard/virtenv-puppetboard]/Python::Requirements[/srv/puppetboard/puppetboard/requirements.txt_/srv/puppetboard/virtenv-puppetboard]/File[/srv/puppetboard/puppetboard/requirements.txt]: Dependency Exec[python_virtualenv_/srv/puppetboard/virtenv-puppetboard] has failures: true

I guess we need a dependency like class { python::install: virtualenv => true, pip => true }?

@nibalizer
Copy link
Member

Well I think you don't have the virtualenv package installed?

@gertvdijk
Copy link
Author

@nibalizer Exactly. Shouldn't the Puppetboard module depend on that as I pointed out in my initial post?
Alternatively, add this to the documentation/README. I think users shouldn't require knowledge of Python to install Puppetboard using this Puppet module, you see?

@nibalizer
Copy link
Member

Okay sure I get that. We could also add a conditional to install virtualenv as well. I'll update both things shortly.

@nibalizer
Copy link
Member

I'm going to close this because I think we have the support you need in the module at this point. Please re-open it if that is not the case. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants