Discussion:
[ansible-project] No module named ansible.runner
skinnedknuckles
2014-10-18 01:44:20 UTC
Permalink
Centos 7
Ansible 1.8
Python 2.7
there are some redundant entries in my environment path but I don't see how
that would cause this problem
PATH is
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin:/usr/sbin:/bin:/sbin:/home/username/.local/bin:/home/username/bin:/etc/ansible:/etc/ansible/bin:/usr/bin/python

Every time I try to run ansible I get

Traceback (most recent call last):
File "/etc/ansible/bin/ansible", line 25, in <module>
from ansible.runner import Runner
ImportError: No module named ansible.runner

I'm not sure if this is a problem with python or ansible but it seems like
something very basic. I've dug around the internet and all I found was
http://michaelheap.com/ansible-importerror-no-module-named-ansible-playbook/

Any tips would be appreciated.
--
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-project+***@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/5599b77c-2853-4346-bbe7-f8285db30824%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
J Dav
2014-10-18 21:01:00 UTC
Permalink
I've had this come up before. The solution for me was to check then fix the permissions of the Python libraries/packages. Which were nonexecutable when the error was present. Think it may have to do with customized umask settings.
--
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-project+***@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/54342d47-7dc7-4596-a1d1-31874d2befdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Leigh
2015-07-08 10:34:56 UTC
Permalink
Did this get resolved by doing this? I have python 2.7 with ubuntu 14.04
and have just come up against this error.
--
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-project+***@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/035f847e-2097-4f10-a73a-9954a9dabbe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
skinnedknuckles
2015-07-08 18:47:02 UTC
Permalink
I can't say for sure but I do remember a python guy helping me modify some
file permissions so it certainly could have worked. Sorry I can't be more
certain.
Post by Michael Leigh
Did this get resolved by doing this? I have python 2.7 with ubuntu 14.04
and have just come up against this error.
--
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-project+***@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/f924ad58-29fe-4ce1-bc31-c38b1f051f29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...