# AWX Installation Failing!

**URL:** <https://forum.ansible.com/t/awx-installation-failing/28047>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 13, 2018, 8:46pm UTC](https://forum.ansible.com/t/awx-installation-failing/28047 "2018-07-13T20:46:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram\_V](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@Ram\_V](https://forum.ansible.com/u/Ram_V)\
**Post date:** [July 13, 2018, 8:46pm UTC](https://forum.ansible.com/t/awx-installation-failing/28047/1 "2018-07-13T20:46:30Z")

</div>

Hi,

I installed docker, docker-py, ansible and cloned AWX. When i try to install AWX, I am getting below error. Any help will be appreciated. Thank you.

TASK [local\_docker : Activate postgres container] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: create\_host\_config() got an unexpected keyword argument ‘init’  
fatal: [localhost]: FAILED! =\> {“changed”: false, “module\_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible\_HfVjrh/ansible\_module\_docker\_container.py", line 2081, in \n main()\n File "/tmp/ansible\_HfVjrh/ansible\_module\_docker\_container.py", line 2076, in main\n cm = ContainerManager(client)\n File "/tmp/ansible\_HfVjrh/ansible\_module\_docker\_container.py", line 1703, in **init** \n self.present(state)\n File "/tmp/ansible\_HfVjrh/ansible\_module\_docker\_container.py", line 1723, in present\n new\_container = self.container\_create(self.parameters.image, self.parameters.create\_parameters)\n File "/tmp/ansible\_HfVjrh/ansible\_module\_docker\_container.py", line 825, in create\_parameters\n host\_config=self.\_host\_config(),\n File "/tmp/ansible\_HfVjrh/ansible\_module\_docker\_container.py", line 931, in \_host\_config\n return self.client.create\_host\_config(\*\*params)\n File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 157, in create\_host\_config\n return utils.create\_host\_config(\*args, \*\*kwargs)\nTypeError: create\_host\_config() got an unexpected keyword argument ‘init’\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 1}  
to retry, use: --limit @/root/awx/installer/install.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=4 changed=0 unreachable=0 failed=1

Warm Regards,  
Ram V

---

<div class="post-metadata">

**Author:** ![Garrett\_Kelly](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Garrett\_Kelly](https://forum.ansible.com/u/Garrett_Kelly)\
**Post date:** [July 24, 2018, 3:48pm UTC](https://forum.ansible.com/t/awx-installation-failing/28047/2 "2018-07-24T15:48:47Z")

</div>

Hey Ram,

I had just recently encountered the issue as well, and the problem is most likely having the docker-py python library installed instead of the docker python library. ([https://github.com/docker/docker-py](https://github.com/docker/docker-py)). This seems to have recently changed since last month as now being an issue.

[https://github.com/ansible/awx/issues/2041](https://github.com/ansible/awx/issues/2041)

Fix is to uninstall docker-py, and install docker instead.

- pip uninstall docker-py
- pip install docker

---

<div class="post-metadata">

**Author:** ![Ram\_V](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@Ram\_V](https://forum.ansible.com/u/Ram_V)\
**Post date:** [July 24, 2018, 4:44pm UTC](https://forum.ansible.com/t/awx-installation-failing/28047/3 "2018-07-24T16:44:41Z")

</div>

Hi Garrett,

Thank you so much for your help and support. I will try your suggestions and keep you posted soon.

Thanks,  
Ram

---

<div class="post-metadata">

**Author:** ![Michael\_McPherson](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@Michael\_McPherson](https://forum.ansible.com/u/Michael_McPherson)\
**Post date:** [February 19, 2020, 5:25pm UTC](https://forum.ansible.com/t/awx-installation-failing/28047/4 "2020-02-19T17:25:10Z")

</div>

After trying this many times and failing I found the solution for me was to change the python interpreter in /awx/installer/inventory to this:

#localhost ansible\_connection=local ansible\_python\_interpreter=“/usr/bin/env python”  
localhost ansible\_connection=local ansible\_python\_interpreter=“/usr/bin/env python3”
