TASK [start docker-compose] **************************************************** fatal: [ubuntu@.org]: FAILED! => {“changed”: false, “msg”: “Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on .org’s Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via pip install docker or pip install docker-py (Python 2.6). The error was: No module named ‘docker’”}

This error just started last week, after no changes. I’ve the error 50x and I’m using python2.7, I’ve got docker-compose, I’ve tried installing all the docker-py multiple ways; I’m not sure what to do here…

Dessalines
mod
admin
110M

Comment out this line in the ansible.cfg

interpreter_python=/usr/bin/python3

@phelix001
creator
210M

Solved!

Dessalines
mod
admin
110M

Sweet, I’ll make sure we have that in the docs somewhere.

@phelix001
creator
110M

This error is on the server, right? Not my local machine?

Support / questions about Lemmy.
!lemmy_support

    Feel free to ask me anything here.

    • 0 users online
    • 9 users / day
    • 13 users / week
    • 21 users / month
    • 94 users / 6 months
    • 405 subscribers
    • 251 Posts
    • 1394 Comments
    • Modlog