# AttributeError: 'module' object has no attribute 'APIError'

**URL:** <https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-apierror/16621>\
**Category:** Ansible Project\
**Created:** [October 28, 2014, 12:39am UTC](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-apierror/16621 "2014-10-28T00:39:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ananda\_Debnath](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Ananda\_Debnath](https://forum.ansible.com/u/Ananda_Debnath)\
**Post date:** [October 28, 2014, 12:39am UTC](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-apierror/16621/1 "2014-10-28T00:39:16Z")

</div>

**_# Failing on this task_**

- name: Build the docker Nginx image  
docker\_image:  
path: “{{ docker\_nginx\_dir }}”  
state: build  
name: nginx

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 30, 2014, 8:35pm UTC](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-apierror/16621/2 "2014-10-30T20:35:03Z")

</div>

Please update to the latest development version of Ansible and the latest versions of Docker/Ubuntu and see if you have problems.

Docker is evolving VERY quickly and I suspect we shouldn’t even assume 13.10 is supported, and we know Ansible 1.6.6 module versions are going to have issues with newer Docker versions.
