# failed (rc=2) with output: python:inventory.py':\[Errno 2\] No such file or directory

**URL:** <https://forum.ansible.com/t/failed-rc-2-with-output-python-inventory-py-errno-2-no-such-file-or-directory/23002>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [November 10, 2016, 3:09pm UTC](https://forum.ansible.com/t/failed-rc-2-with-output-python-inventory-py-errno-2-no-such-file-or-directory/23002 "2016-11-10T15:09:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Saini](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Amit\_Saini](https://forum.ansible.com/u/Amit_Saini)\
**Post date:** [November 10, 2016, 3:09pm UTC](https://forum.ansible.com/t/failed-rc-2-with-output-python-inventory-py-errno-2-no-such-file-or-directory/23002/1 "2016-11-10T15:09:02Z")

</div>

Hi Friends,

I am trying to add and run Inventory with **custom script** in ansible tower but every time getting this error

RuntimeError: [‘proot’, ‘-v’, ‘0’, ‘-r’, ‘/’, ‘-b’, ‘/tmp/ansible\_tower\_launch\_11iaMR/tmp41GNon:/etc/tower’, ‘-b’, ‘/tmp/ansible\_tower\_launch\_11iaMR/tmpBlamDp:/tmp’, ‘-b’, ‘/tmp/ansible\_tower\_launch\_11iaMR/tmpwtm\_wb:/var/lib/awx’, ‘-b’, ‘/tmp/ansible\_tower\_launch\_11iaMR/tmpbWUlS6:/var/lib/awx/job\_status’, ‘-b’, ‘/tmp/ansible\_tower\_launch\_11iaMR/tmpLM4A1s:/var/lib/awx/projects’, ‘-b’, ‘/tmp/ansible\_tower\_launch\_11iaMR/tmpiA39p7:/var/log’, ‘-b’, ‘/tmp/ansible\_tower\_launch\_11iaMR:/tmp/ansible\_tower\_launch\_11iaMR’, ‘-b’, ‘/var/lib/awx/venv/ansible:/var/lib/awx/venv/ansible’, ‘-b’, ‘/var/lib/awx/venv/tower:/var/lib/awx/venv/tower’, ‘-w’, ‘/tmp/ansible\_tower\_launch\_11iaMR’, ‘/tmp/ansible\_tower\_launch\_11iaMR/tmpNwgMld’, ‘–list’] **failed (rc=2) with output: python: can’t open file ‘/var/lib/awx/scalr/scalr-ansible-tower/inventory.py’: [Errno 2] No such file or directory**

Is there anyone who face same problem. Please Help!!!

---

<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:** [November 10, 2016, 11:26pm UTC](https://forum.ansible.com/t/failed-rc-2-with-output-python-inventory-py-errno-2-no-such-file-or-directory/23002/2 "2016-11-10T23:26:32Z")

</div>

For tower issues please open a ticket at [http://support.ansible.com](http://support.ansible.com)
