# Python interpreter error

**URL:** <https://forum.ansible.com/t/python-interpreter-error/35627>\
**Category:** Ansible Project\
**Created:** [August 16, 2021, 9:19am UTC](https://forum.ansible.com/t/python-interpreter-error/35627 "2021-08-16T09:19:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unai\_abrisketa\_sanch](https://avatars.discourse-cdn.com/v4/letter/u/278dde/32.png) [@unai\_abrisketa\_sanch](https://forum.ansible.com/u/unai_abrisketa_sanch)\
**Post date:** [August 16, 2021, 9:19am UTC](https://forum.ansible.com/t/python-interpreter-error/35627/1 "2021-08-16T09:19:00Z")

</div>

Hi team!

I am using ansible to run playbooks in a Fortigate firewall and I am getting a recursive error shows below:

[WARNING]: Unhandled error in Python interpreter discovery for host  
FW\_SALINILLAS: unexpected output from Python interpreter discovery  
[WARNING]: sftp transfer mechanism failed on [10.60.3.126]. Use ANSIBLE\_DEBUG=1  
to see detailed information  
[WARNING]: scp transfer mechanism failed on [10.60.3.126]. Use ANSIBLE\_DEBUG=1  
to see detailed information  
[WARNING]: Platform unknown on host FW\_SALINILLAS 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/](https://docs.ansible.com/ansible/2.9/)  
reference\_appendices/interpreter\_discovery.html for more information.  
fatal: [FW\_SALINILLAS]: FAILED! =\> {“ansible\_facts”: {“discovered\_interpreter\_py thon”: “/usr/bin/python”}, “changed”: false, “module\_stderr”: “Shared connection to 10.60.3.126 closed.\r\n”, “module\_stdout”: "FW-SALINILLAS-1 # Unknown action 0\r\n\r\nFW-SALINILLAS-1 # ", “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 0}

Does anybody know why I am getting this error?

Thanks in advance
