# imported module support code does not exist

**URL:** <https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [May 14, 2014, 10:45pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240 "2014-05-14T22:45:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cary\_Corse](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@Cary\_Corse](https://forum.ansible.com/u/Cary_Corse)\
**Post date:** [May 14, 2014, 10:45pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240/1 "2014-05-14T22:45:56Z")

</div>

When I run a playbook containing

`

- name: Configure instance

hosts: elastic-search-test  
user: ubuntu  
sudo: yes  
gather\_facts: true

tags:

- config
- configure  
`

I get this error message

fatal: [[ec2-54-226-176-175.compute-1.amazonaws.com](http://ec2-54-226-176-175.compute-1.amazonaws.com)] =\> imported module support code does not exist at /usr/local/lib/python2.7/dist-packages/ansible/module\_utils/facts.py

Am I missing something here?

Cheers,

Cary

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 14, 2014, 11:47pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240/2 "2014-05-14T23:47:21Z")

</div>

Sounds like you have a crossed-up installation where something was partly make installed and then you are trying to run parts of ansible from source.

Do source ./hacking/env-setup or make sure traces of a previous installation were removed or installed consistently, and you should be ok here.

---

<div class="post-metadata">

**Author:** ![Marcos\_Cano1](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Marcos\_Cano1](https://forum.ansible.com/u/Marcos_Cano1)\
**Post date:** [May 19, 2014, 11:05pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240/3 "2014-05-19T23:05:16Z")

</div>

I’m having the same problem… @Michael DeHaan can you specify more the ./hacking/env-setup

thanks

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 21, 2014, 9:53pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist/15240/4 "2014-05-21T21:53:54Z")

</div>

git checkout  
source ./hacking/env-setup
