# Unhandled error in Python interpreter discovery for host

**URL:** <https://forum.ansible.com/t/unhandled-error-in-python-interpreter-discovery-for-host/33759>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [September 8, 2020, 4:36am UTC](https://forum.ansible.com/t/unhandled-error-in-python-interpreter-discovery-for-host/33759 "2020-09-08T04:36:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edwin\_Cabarique](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@Edwin\_Cabarique](https://forum.ansible.com/u/Edwin_Cabarique)\
**Post date:** [September 8, 2020, 4:36am UTC](https://forum.ansible.com/t/unhandled-error-in-python-interpreter-discovery-for-host/33759/1 "2020-09-08T04:36:24Z")

</div>

Hello team.

I wanted to ask you for some help with this error when trying to connect to a cisco router from Ansible. either by console or by means of AWX.

[root@centos7 home]# ansible all -m ping  
[WARNING]: Unhandled error in Python interpreter discovery for host 172.25.3.17: unexpected output from Python interpreter  
discovery  
[WARNING]: sftp transfer mechanism failed on [172.25.3.17]. Use ANSIBLE\_DEBUG=1 to see detailed information  
[WARNING]: Platform unknown on host 172.25.3.17 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.  
172.25.3.17 | FAILED! =\> {  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“changed”: false,  
“module\_stderr”: “Shared connection to 172.25.3.17 closed.\r\n”,  
“module\_stdout”: “\r\nLine has invalid autocommand "/bin/sh -c ‘/usr/bin/python ‘"’"‘Line has invalid autocommand "/bin/sh -c ‘"’"’"’"‘"’"‘"’"‘( umask 77 && mkdir -p "` echo Line has invalid autocommand "/bin/sh -c ‘"’"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"’"‘"‘echo ~edwin.cabarique && sleep 0’"’"‘"’"”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 0  
}
