Giter VIP home page Giter VIP logo

Comments (9)

zbrox avatar zbrox commented on July 20, 2024

It seems the ansible pip module's requirements are not installed by default on a clean Ubuntu 18.04 install. I added a pre task to apt-get install them and it seems to resolve the issue. The error message wasn't that helpful though 😃

These are the requirements:

- python3-virtualenv
- python3-setuptools
- python3-pip

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

Which version of this role did you install?

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

This role will apt install python-pip which allows you to use the pip module to install things. Did you configure Ansible to use Python 3 instead of Python 2?

from ansible-docker.

zbrox avatar zbrox commented on July 20, 2024

It was fetched today from the repo so I would assume the latest. In my requirements.yml I didn't put a version specifier. And yes I have specified for that host to use Python 3 using ansible_python_interpreter.

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

I think this boils down to you setting ansible_python_interpreter. Thanks for the report.

from ansible-docker.

zbrox avatar zbrox commented on July 20, 2024

Yeah, no worries. I had to set the interpreter to Python 3 unfortunately because of Ubuntu 18.04 fresh install which only has that installed by default, which was news to me.

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

I installed the stock Ubuntu 18.04 ISO directly from Ubuntu's site the other day and Python 3 wasn't set up by default. All I did was apt install python (exactly that package, as part of my bootstrap role) and Ansible worked with Python 2.7, and Docker worked without having to install pip3.

from ansible-docker.

zbrox avatar zbrox commented on July 20, 2024

This is weird. I will look into this further. This was a freshly spun up EC2 instance with Ubuntu 18.04.1.

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

As of v1.6.0 (released yesterday), this role will now try to detect which Python version you're running and it will install the correct pip package. Let me know if it works for you.

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.