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

pip upgrade needs root #971

Closed
jimux opened this issue Dec 6, 2016 · 4 comments
Closed

pip upgrade needs root #971

jimux opened this issue Dec 6, 2016 · 4 comments

Comments

@jimux
Copy link

jimux commented Dec 6, 2016

Steps to reproduce the error

I checked out the source tree and ran
vagrant up --provision

Actual behavior

The VM build failed at step "Upgrade to latest PIP version":
Installing collected packages: pip
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Can't roll back pip; was not uninstalled

Expected behavior

"changed: [default]"

Resolution

Rather than running as the app_user, vagrant, the update needs to be done as root.
become_user: "root"

@ian-ross
Copy link
Contributor

ian-ross commented Dec 6, 2016

I think this is a duplicate of #900

@jimux
Copy link
Author

jimux commented Dec 6, 2016

My mistake. I was only searching open issues when I checked. pip install ansible==2.1.2.0 fixed it right up. Perhaps a note to that effect could be added to the README. Ansible 2.2 was also resulting in the "Install requirements" step looking for Python.h in the wrong place.

@ian-ross
Copy link
Contributor

ian-ross commented Dec 6, 2016

Yeah, there's a bad bug in the pip module in Ansible 2.2 that more or less completely breaks conventional use of Python virtual environments. There's an issue open for it so I hope it'll be fixed in the next Ansible release.

@dpalomino
Copy link

Not relevant now, closing it.

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