# Getting '/usr/bin/env: python: Too many levels of symbolic links' while running job through Tower

**URL:** <https://forum.ansible.com/t/getting-usr-bin-env-python-too-many-levels-of-symbolic-links-while-running-job-through-tower/28138>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 24, 2018, 5:43pm UTC](https://forum.ansible.com/t/getting-usr-bin-env-python-too-many-levels-of-symbolic-links-while-running-job-through-tower/28138 "2018-07-24T17:43:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharath\_Kumar](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Bharath\_Kumar](https://forum.ansible.com/u/Bharath_Kumar)\
**Post date:** [July 24, 2018, 5:43pm UTC](https://forum.ansible.com/t/getting-usr-bin-env-python-too-many-levels-of-symbolic-links-while-running-job-through-tower/28138/1 "2018-07-24T17:43:28Z")

</div>

Hi awx,

I am using:

> Ansible Tower version: 3.2.5  
> Ansible version: 2.6.1

I have created a job template and added inventory, but while executing the job through Ansible Tower I am getting below WARNINGS and unable to run job in specified hosts.

> SSH password:
> 
> SUDO password[defaults to SSH password]:
> 
> [WARNING]: \* Failed to parse /tmp/awx\_117\_vn\_OFE/tmpb05vb9.awxrest.py with
> 
> script plugin: Inventory script (/tmp/awx\_117\_vn\_OFE/tmpb05vb9.awxrest.py) had
> 
> an execution error: /usr/bin/env: python: Too many levels of symbolic links
> 
> [WARNING]: \* Failed to parse /tmp/awx\_117\_vn\_OFE/tmpb05vb9.awxrest.py with
> 
> ini plugin: /tmp/awx\_117\_vn\_OFE/tmpb05vb9.awxrest.py:35: Expected key=value
> 
> host variable assignment, got: json
> 
> [WARNING]: Unable to parse /tmp/awx\_117\_vn\_OFE/tmpb05vb9.awxrest.py as an
> 
> inventory source
> 
> [WARNING]: No inventory was parsed, only implicit localhost is available
> 
> [WARNING]: provided hosts list is empty, only localhost is available. Note
> 
> that the implicit localhost does not match ‘all’
> 
> PLAY [Testing] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*22:58:44
> 
> TASK [debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*22:58:44
> 
> ok: [localhost] =\> {
> 
> “msg”: “Success”
> 
> }
> 
> PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*22:58:44
> 
> localhost : ok=1 changed=0 unreachable=0 failed=0

But when I am running the same playbook directly using ‘ansible-playbook’, ran successfully. Someone please help me in fixing this issue.

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [August 1, 2018, 5:02pm UTC](https://forum.ansible.com/t/getting-usr-bin-env-python-too-many-levels-of-symbolic-links-while-running-job-through-tower/28138/2 "2018-08-01T17:02:32Z")

</div>

Bharat,

"This list is for discussions about the AWX open source project. If you are having issues with Ansible Tower, please contact your Red Hat support rep.
