# Receiving an error for docker-py when attempting to build a docker image.

**URL:** <https://forum.ansible.com/t/receiving-an-error-for-docker-py-when-attempting-to-build-a-docker-image/23369>\
**Category:** Ansible Project\
**Created:** [January 3, 2017, 7:33pm UTC](https://forum.ansible.com/t/receiving-an-error-for-docker-py-when-attempting-to-build-a-docker-image/23369 "2017-01-03T19:33:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyletmanel](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kyletmanel](https://forum.ansible.com/u/kyletmanel)\
**Post date:** [January 3, 2017, 7:33pm UTC](https://forum.ansible.com/t/receiving-an-error-for-docker-py-when-attempting-to-build-a-docker-image/23369/1 "2017-01-03T19:33:12Z")

</div>

I receive the appended error when I use the following ansible command:

docker\_image: path=./docker name=url\container:v7.2.4 tag=7.2.4 push=yes

fatal: [[jira-1.corp.inbaytech.com](http://jira-1.corp.inbaytech.com)]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Failed to import docker-py - No module named requests.exceptions. Try `pip install docker-py`”}

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [January 6, 2017, 7:47am UTC](https://forum.ansible.com/t/receiving-an-error-for-docker-py-when-attempting-to-build-a-docker-image/23369/2 "2017-01-06T07:47:37Z")

</div>

And did you install docker-py?

Johannes
