Comments (9)
https://github.com/nickjj/ansible-docker#configuring-virtualenv explains why a virtualenv is used for anything that gets pip installed, that's the intended behavior.
from ansible-docker.
I also experienced the same issue after upgrading to Ubuntu 22.04`- the removing of the virtualenv fixed the issue.
from ansible-docker.
Seems like this issue is also present after upgrade from 22.04 -> 24.04, removing the venv still fixes the issue though.
from ansible-docker.
Hi,
Thanks. You mentioned it worked pretty well on 22.04, did it work out of the box with no adjustments on the fresh install?
I'm kind of surprised upgrading would cause that issue or if it's worth trying to find a workaround especially with Docker now installing Docker Compose through its official apt plugin which no longer requires a Python runtime or a virtualenv to be created. Your workaround seems good for the 1 off case. Did this happen every time you upgraded, just once out of X times or only once in the one time you tried it?
from ansible-docker.
I think from a fresh install it works fine, I'll double check and report back.
Also, have a couple other machines that also need to be upgraded, will do those this evening and again let you know.
from ansible-docker.
Confirmed on another machine I upgraded that the same issue is occurring, also confirmed that a fresh install works fine.
from ansible-docker.
Thanks. I wonder why it's picky about not being able to keep that file between upgrades. I am seeing in 22.04 it does work out of the box. Upgrading from 20.04 is kind of edge case'ish but if we can do something easily to address it I'm ok with supporting it. Any suggestions?
from ansible-docker.
Sorry, got busy for a few weeks there.
Perhaps we could have a handler for the failure case which clobbers that folder or something? I'm not sure if there's a case though where we wouldn't want it to do that. I can give it a try and make a PR when I get a chance.
from ansible-docker.
For me, the problem that it used some virtualenv python to install pip docker (instead of the regular ansible python) happened with a fresh Ubuntu 22.04 using Ansible 6.3.0
from ansible-docker.
Related Issues (20)
- Support for docker.io package (in addition to ce and ee) HOT 4
- Failed : Install Docker's dependencies HOT 9
- Package dependency error for Docker installation on clean Ubuntu 18.04 HOT 11
- Ubuntu 20.04 ImportError: No module named pkg_resources HOT 10
- Avoid docker login issue with X11 HOT 11
- Expected behavior for DockerHub private repositories login options? HOT 19
- Failed to import the required Python library HOT 10
- Update apt cache before installing packages HOT 1
- Add way to add additional packages to install HOT 3
- Versioning pinning not working HOT 5
- Install Python packages: Could not get output from /usr/local/bin/virtualenv --help HOT 16
- Hi; Please consider suppressing credentials output in: Manage Docker registry login credentials HOT 8
- I'm thinking about no longer setting up a virtualenv, pip installing docker / docker compose and switching the docker_login module to a shell script HOT 2
- docker not installed into /usr/local/bin HOT 4
- Unable to find pip in the virtualenv HOT 8
- Error in new v2.2.0 version when using ansible 2.9.14 HOT 3
- Docker Compose V1 causes the Install Python packages step to crash HOT 3
- Error with pip on basic usage HOT 2
- Task exception at: Install Python packages HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-docker.