# docker module requirements met, but ansible misses docker-py

**URL:** <https://forum.ansible.com/t/docker-module-requirements-met-but-ansible-misses-docker-py/21165>\
**Category:** Ansible Project\
**Created:** [April 15, 2016, 6:11am UTC](https://forum.ansible.com/t/docker-module-requirements-met-but-ansible-misses-docker-py/21165 "2016-04-15T06:11:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goetz\_Leupold](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@Goetz\_Leupold](https://forum.ansible.com/u/Goetz_Leupold)\
**Post date:** [April 15, 2016, 6:11am UTC](https://forum.ansible.com/t/docker-module-requirements-met-but-ansible-misses-docker-py/21165/1 "2016-04-15T06:11:01Z")

</div>

Hello everybody,

got 2 Servers with docker and ansible requirements to manipulate them. But at server B , ansible doent find docker-py allthough it is installed. The versions of the installed softwares differ, so i guess there is the problem.

Server A(working):  
python2.7  
docker\_py-1.7.2.egg-info  
Server:  
Version: 1.10.3  
API version: 1.22  
Go version: go1.5.3  
Git commit: 20f81dd  
Built: Thu Mar 10 15:48:06 2016  
OS/Arch: linux/amd64

Server B(not working):  
python2.7  
docker\_py-1.8.0.egg-info  
Server:  
Version: 1.9.1  
API version: 1.21  
Go version: go1.4.3  
Git commit: a34a1d5  
Built: Fri Nov 20 17:56:04 UTC 2015  
OS/Arch: linux/amd64

If i try then to start a container through ansible i got the error:  
fatal: [HOST]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “`docker-py` doesn’t seem to be installed, but is required for the Ansible Docker module.”}

Any ideas? If you need more specific information let me know and excuse my bad english 😃

Greetings,  
Götz

---

<div class="post-metadata">

**Author:** ![Hadrien\_B](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@Hadrien\_B](https://forum.ansible.com/u/Hadrien_B)\
**Post date:** [May 24, 2016, 2:48pm UTC](https://forum.ansible.com/t/docker-module-requirements-met-but-ansible-misses-docker-py/21165/2 "2016-05-24T14:48:05Z")

</div>

Hi,

I have the same issue.  
Any solution ?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 25, 2016, 9:13pm UTC](https://forum.ansible.com/t/docker-module-requirements-met-but-ansible-misses-docker-py/21165/3 "2016-05-25T21:13:22Z")

</div>

You are probably not executing the same version of python that has docker-py installed.

---

<div class="post-metadata">

**Author:** ![Gallo](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gallo](https://forum.ansible.com/u/Gallo)\
**Post date:** [July 21, 2016, 8:45pm UTC](https://forum.ansible.com/t/docker-module-requirements-met-but-ansible-misses-docker-py/21165/4 "2016-07-21T20:45:16Z")

</div>

Hey did you figure it out. I have the same problem: specs below:

pip -V  
pip 8.1.2 from /usr/lib/python2.6/site-packages (python 2.6)

pip freeze |grep docker  
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6  
docker-compose==1.7.1  
docker-py==1.8.1  
dockerpty==0.4.1

error message below:  
: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “`docker-py` doesn’t seem to be installed, but is required for the Ansible Docker module.”}

---

<div class="post-metadata">

**Author:** ![Gallo](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gallo](https://forum.ansible.com/u/Gallo)\
**Post date:** [July 22, 2016, 5:25pm UTC](https://forum.ansible.com/t/docker-module-requirements-met-but-ansible-misses-docker-py/21165/5 "2016-07-22T17:25:28Z")

</div>

Found a work around, by adding specifics of pip and docker-py to the playbook
