imported module support code does not exist

680 views
Skip to first unread message

Cary Corse

unread,
May 14, 2014, 6:45:56 PM5/14/14
to ansible...@googlegroups.com
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

Michael DeHaan

unread,
May 14, 2014, 7:47:21 PM5/14/14
to ansible...@googlegroups.com
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.




--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cf13e711-42f9-443c-8d68-36ebea03fd45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcos Cano

unread,
May 19, 2014, 7:05:16 PM5/19/14
to ansible...@googlegroups.com
I'm having the same problem.... @Michael DeHaan can you specify more the ./hacking/env-setup

thanks

Michael DeHaan

unread,
May 21, 2014, 5:53:54 PM5/21/14
to ansible...@googlegroups.com
git checkout
source ./hacking/env-setup




Reply all
Reply to author
Forward
0 new messages