Hello, can anyone can help me with this problem - i want to run ansible 
from python sctipt using API ver.2.
i'm doing everything like in exmple 
(http://docs.ansible.com/ansible/latest/dev_guide/developing_api.html#python-api-2-0)
 
but i got a error message:

Traceback (most recent call last):
  File "ansible.py", line 5, in <module>
    from ansible.parsing.dataloader import DataLoader
  File "/root/ansible.py", line 5, in <module>
    from ansible.parsing.dataloader import DataLoader
ImportError: No module named parsing.dataloader

What am i doing wrong?

I do have path to packages and don't have same issues with another modules:
>>> import sys
>>> sys.path
['', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', 
'/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', 
'/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', 
'/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']

pip show ansible
Location: /usr/lib/python2.7/site-packages

Thank you in advance!


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to