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

python::pip doesn't find pip command #31

Closed
cedricmessiant opened this issue Sep 13, 2013 · 3 comments
Closed

python::pip doesn't find pip command #31

cedricmessiant opened this issue Sep 13, 2013 · 3 comments

Comments

@cedricmessiant
Copy link

When I try to use python::pip without any parameter, I have this error :

Error: Parameter unless failed on Exec[pip_install_collective.zopeedit]: 'pip freeze | grep -i -e ^collective.zopeedit==' is not qualified and no path was specified. Please qualify the command or specify a path. at /etc/puppet/modules/python/manifests/pip.pp:87
Wrapped exception:
'pip freeze | grep -i -e ^collective.zopeedit==' is not qualified and no path was specified. Please qualify the command or specify a path.

If I change line 61 of pip.pp by :

'system' => '/usr/bin/pip',

It works.
Do you have an idea about why puppet doesn't find pip ?

@stankevich
Copy link
Collaborator

Add the following to your site.pp

Exec { path => '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin' }

@cedricmessiant
Copy link
Author

Oh, thanks, I forgot that I opened this issue (and since, I learned how to use exec ;-).

@elithrar
Copy link

Just to note, adding Exec { path => '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin' } doesn't guarantee that pip will be found as it doesn't provide explicit ordering. Is there a way to remedy this?

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

3 participants