# "Platform linux on host #### is using the discovered Python interpreter at /usr/bin/python,

**URL:** <https://forum.ansible.com/t/platform-linux-on-host-is-using-the-discovered-python-interpreter-at-usr-bin-python/34749>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 9, 2021, 10:43am UTC](https://forum.ansible.com/t/platform-linux-on-host-is-using-the-discovered-python-interpreter-at-usr-bin-python/34749 "2021-03-09T10:43:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Bora](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Akshay\_Bora](https://forum.ansible.com/u/Akshay_Bora)\
**Post date:** [March 9, 2021, 10:43am UTC](https://forum.ansible.com/t/platform-linux-on-host-is-using-the-discovered-python-interpreter-at-usr-bin-python/34749/1 "2021-03-09T10:43:48Z")

</div>

Hi People,

I am running the ansible playbook through AWX and its getting failed with the subjected error. But the same playbook is running on other server successfully. Kindly help to resolve the issue.

{  
“ansible\_facts”: {},  
“msg”: “The following modules failed to execute: setup\n”,  
“failed\_modules”: {  
“setup”: {  
“failed”: true,  
“module\_stdout”: " File "/home/oracle/.ansible/tmp/ansible-tmp-1615285403.4958365-166725-83674126722203/AnsiballZ\_setup.py", line 72\r\n with open(args\_path, ‘rb’) as f:\r\n ^\r\nSyntaxError: invalid syntax\r\n",  
“module\_stderr”: “Shared connection to ###### closed.\r\n”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1,  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“warnings”: [  
“Platform linux on host###### is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See [https://docs.ansible.com/ansible/2.9/reference\_appendices/interpreter\_discovery.html](https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html) for more information.”  
]  
}  
},  
“\_ansible\_verbose\_override”: true,  
“\_ansible\_no\_log”: false,  
“changed”: false

---

<div class="post-metadata">

**Author:** ![Akshay\_Bora](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Akshay\_Bora](https://forum.ansible.com/u/Akshay_Bora)\
**Post date:** [March 10, 2021, 6:53am UTC](https://forum.ansible.com/t/platform-linux-on-host-is-using-the-discovered-python-interpreter-at-usr-bin-python/34749/2 "2021-03-10T06:53:36Z")

</div>

Can someone please help me on this? If anyone has faced same issue and has resolution, please help.

---

<div class="post-metadata">

**Author:** ![Pawel\_Smolarz](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@Pawel\_Smolarz](https://forum.ansible.com/u/Pawel_Smolarz)\
**Post date:** [March 10, 2021, 6:29pm UTC](https://forum.ansible.com/t/platform-linux-on-host-is-using-the-discovered-python-interpreter-at-usr-bin-python/34749/3 "2021-03-10T18:29:09Z")

</div>

Hi,

Please set ansible\_python\_interpreter as below for playbook. Then always the same python env will be used for shell execution and AWX - python related to ansible-playbook.
