# Using ansible and getting "No module named simplejson", here's where to find it.

**URL:** <https://forum.ansible.com/t/using-ansible-and-getting-no-module-named-simplejson-heres-where-to-find-it/11426>\
**Category:** Ansible Project\
**Tags:** rhel, fedora\
**Created:** [April 19, 2012, 12:12pm UTC](https://forum.ansible.com/t/using-ansible-and-getting-no-module-named-simplejson-heres-where-to-find-it/11426 "2012-04-19T12:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [April 19, 2012, 12:12pm UTC](https://forum.ansible.com/t/using-ansible-and-getting-no-module-named-simplejson-heres-where-to-find-it/11426/1 "2012-04-19T12:12:59Z")

</div>

If you get this message when running Ansible, this means you are using a version of Python less than 2.6 and need to provide JSON (either on your control machine or remote machines) support.

To fix this, install the python-simplejson modle (this is the name of the package at least in Fedora, Red Hat Enterprise Linux, or CentOS). If using RHEL or CentOS, a good place to get this is from Extras Packages for Enterprise Linux (EPEL). This is not needed on any machines already running Python 2.6.

EL 6 already has Python 2.6, so you’ll most likely encounter this just on EL5 and earlier.

See also: [http://fedoraproject.org/wiki/EPEL](http://fedoraproject.org/wiki/EPEL)

–Michael

(This email is mostly just to feed Google as I noticed a few people searching for it)

---

<div class="post-metadata">

**Author:** ![Wes\_Johnson](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@Wes\_Johnson](https://forum.ansible.com/u/Wes_Johnson)\
**Post date:** [May 8, 2012, 3:19am UTC](https://forum.ansible.com/t/using-ansible-and-getting-no-module-named-simplejson-heres-where-to-find-it/11426/2 "2012-05-08T03:19:11Z")

</div>

I searched for it too, and found myself on this page.

It would be nice if the error output made it clear the remote machine failed, as I was a bit confused after reading [http://ansible.github.com/gettingstarted.html](http://ansible.github.com/gettingstarted.html) and confirming that I did in fact have python-simplejson installed… on the _overlord_ machine. I’ll reread gettingstarted.html, and see if this is just PEBKAC, or if it can be written clearer.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 8, 2012, 10:47am UTC](https://forum.ansible.com/t/using-ansible-and-getting-no-module-named-simplejson-heres-where-to-find-it/11426/3 "2012-05-08T10:47:56Z")

</div>

> I searched for it too, and found myself on this page.
> 
> It would be nice if the error output made it clear the remote machine failed, as I was a bit confused after reading [http://ansible.github.com/gettingstarted.html](http://ansible.github.com/gettingstarted.html) and confirming that I did in fact have python-simplejson installed… on the _overlord_ machine. I’ll reread gettingstarted.html, and see if this is just PEBKAC, or if it can be written clearer.

You are probably correct it should print that something is a _remote_ traceback where folks don’t realize that, after mentioning the remote hostname, that message is coming from that host. You do get the traceback though.

If only to reduce the probability of getting that question, it would be a good thing.

–Michael
