imported module support code does not exist

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] => 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

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.

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

thanks

git checkout
source ./hacking/env-setup