Giter VIP home page Giter VIP logo

Comments (9)

nickjj avatar nickjj commented on July 24, 2024 1

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.

votti avatar votti commented on July 24, 2024 1

I also experienced the same issue after upgrading to Ubuntu 22.04`- the removing of the virtualenv fixed the issue.

from ansible-docker.

compscidr avatar compscidr commented on July 24, 2024 1

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.

nickjj avatar nickjj commented on July 24, 2024

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.

compscidr avatar compscidr commented on July 24, 2024

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.

compscidr avatar compscidr commented on July 24, 2024

Confirmed on another machine I upgraded that the same issue is occurring, also confirmed that a fresh install works fine.

from ansible-docker.

nickjj avatar nickjj commented on July 24, 2024

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.

compscidr avatar compscidr commented on July 24, 2024

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.

daniel-sc avatar daniel-sc commented on July 24, 2024

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)

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.