# Ansible-Python Dependency

**URL:** <https://forum.ansible.com/t/ansible-python-dependency/22132>\
**Category:** Ansible Project\
**Created:** [July 27, 2016, 10:09am UTC](https://forum.ansible.com/t/ansible-python-dependency/22132 "2016-07-27T10:09:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [July 27, 2016, 10:09am UTC](https://forum.ansible.com/t/ansible-python-dependency/22132/1 "2016-07-27T10:09:22Z")

</div>

Dear All,

I have a playbook written to fetch various type of inventory information.  
This playbook gives the following error when i try to run in on RHEL5.5 server with Python2.4.3 in it

Error:  
fatal: [172.19.1.156]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Error: ansible requires the stdlib json or simplejson module, neither was found!”}

How do I go about resolving it from my control machine itself?

Also, a basic query: Does ansible need python2.6 on the remote machines as well??

Thanks in advance,  
Mona G

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 27, 2016, 10:36am UTC](https://forum.ansible.com/t/ansible-python-dependency/22132/2 "2016-07-27T10:36:11Z")

</div>

Have you read the documentation?

> &nbsp;&nbsp;&nbsp;I have a playbook written to fetch various type of inventory information.  
> &nbsp;&nbsp;&nbsp;This playbook gives the following error when i try to run in on RHEL5.5  
> server with Python2.4.3 in it

[https://docs.ansible.com/ansible/intro\_installation.html#control-machine-requirements](https://docs.ansible.com/ansible/intro_installation.html#control-machine-requirements)

> &nbsp;&nbsp;&nbsp;Error:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fatal: [172.19.1.156]: FAILED! =\> {"changed": false, "failed": true,  
> "msg": "Error: ansible requires the stdlib json or simplejson module,  
> neither was found!"}
> 
> &nbsp;&nbsp;&nbsp;&nbsp;How do I go about resolving it from my control machine itself?

[https://docs.ansible.com/ansible/intro\_installation.html#installing-the-control-machine](https://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine)

> &nbsp;&nbsp;&nbsp;&nbsp;Also, a basic query: Does ansible need python2.6 on the remote  
> machines as well??

[https://docs.ansible.com/ansible/intro\_installation.html#managed-node-requirements](https://docs.ansible.com/ansible/intro_installation.html#managed-node-requirements)
