Fix for Ansible “detected unhandled Python exception” via “‘module object has no attribute DEFAULT_LOCAL_TMP”

This one stumped me for a few minutes when all of a sudden when Ansible couldn’t run on this system. After a quick strace pointed to the fact that Ansible was using :


which was not from the 2.1 version I had installed from a EPEL RPM (the 2.0 was built locally on this system prior to the 2.1 update) . There are lots of ways to clean this up properly  but since this was a non-prod system and I was in a hurry I just :

rm -rf /usr/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg/ (after testing its removal didn’t break other things too badly of course…you can always just MV to a .old or whatever your preference is)

and recorded my findings for the next google traveler to find and perhaps cleanup properly.

One Comment

  1. Jared says:


Leave a Reply