Code Monkey home page Code Monkey logo

Comments (4)

nickjj avatar nickjj commented on June 12, 2024

Hi,

It sounds like you might want to configure your Ansible interpreter to use Python 3. This feels like it's a client / user problem?

On a fresh Ubuntu 18.04 system here, I do not run into this problem when I don't have Python 2 installed. This is verified on Travis as well. The image used for testing only has Python 3 installed.

from ansible-docker.

debauer avatar debauer commented on June 12, 2024

Hi, i dont think thats an Ansible interpreter problem, because ansible pip module uses the pip binary from the virtuelenv, thats not the same environment. But i think the ansible pip module will link the default python interpreter of the host into the virtualenv. Pinning on python3 will fix it for fresh install and also for old systems. I Think that will hurt no one, but fix it for someone :-)

from ansible-docker.

nickjj avatar nickjj commented on June 12, 2024

The docs for the pip module mention:

Although it executes using the Ansible Python interpreter, the pip module shells out to run the actual pip command, so it can use any pip version you specify with executable. By default, it uses the pip version for the Ansible Python interpreter. For example, pip3 on python 3, and pip2 or pip on python 2.

That leads me to think if you set your Ansible interpreter to Python 3 then it would work without this patch. Have you tried that? You can set it at the playbook level if you want for a test.

from ansible-docker.

nickjj avatar nickjj commented on June 12, 2024

Let me know how it goes if you decide to try that. For now I'm closing this.

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.