On my machine where I would to deploy was Ansible version 2.9.11 too, but it doesn't works and I got error: "Failed to import docker or docker-py - cannot import name __version__. Try pip install docker or pip install docker-py (Python 2.6)"}. How to solve the problem in my case:
Jan 20, 2017 · docker-py is just the name of the project. It installs a python package named docker. So you should run: # python Python 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import docker >>> print (docker.version) 1.10.6 >>>.
20.01.2017 · ISSUE TYPE Bug Report COMPONENT NAME docker_container ANSIBLE VERSION ansible 2.3.0 (devel 216e2c8813) last updated 2017/01/20 09:22:29 (GMT +000) ansible 2.2.0.0 (detached HEAD cdec853e37) last up...
07.02.2012 · "Failed to import docker or docker-py - cannot import name constants" when installing AWX on Ubuntu 19.04 Hot Network Questions According to Latter-day Saints, what are the strongest arguments for the credibility of the 3 & 8 witnesses to the golden plates?
Sep 06, 2019 · "Failed to import docker or docker-py - cannot import name constants" when installing AWX on Ubuntu 19.04 ... false, "msg": "Failed to import docker or docker-py ...
26.12.2018 · fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import docker or docker-py - No module named docker. I was using the following: Ubuntu 20.04 Ansible 2.10.7 Python 3.8.10 pip 20.0.2 (pip3) Here's how I fixed mine: So first I ran the command to remove all existing copies of docker, docker-py and docker-compose python libraries:
{"changed": false, "msg": "Failed to import docker or docker-py - No module named requests.exceptions. Try `pip install docker` or `pip install docker-py` ...
Oct 30, 2021 · Failed to import docker or docker-py - cannot import name version. Try pip install docker or pip install docker-py (Python 2.6) (Finally :) ) If I switch the remote Ansible from 2.8.6 to 2.7.14 (docker exec centos pip install ansible==2.7.14), it does work again (with stable-2.7, stable-2.8 and devel).
On my machine where I would to deploy was Ansible version 2.9.11 too, but it doesn't works and I got error: "Failed to import docker or docker-py - cannot import name __version__. Try pip install docker or pip install docker-py (Python 2.6)"}. How to solve the problem in my case:
Nov 12, 2019 · When trying to do a molecule test of an Ansible role on a friend’s jumpbox, I kept getting this error: Running in “debug” mode gave me a bit more detail, leading to this message: thehearn@thatbox99> molecule --debug converge -s docker <snip> "msg": "Failed to import docker-py - cannot import name certs. Try `pip install docker-py`".