Ok, let's check this out: 
> whereis python
   python: /usr/bin/pytho

 > python -v
    Python 2.7.10 (default, Sep  7 2015, 13:51:49)   
[GCC 5.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.7/lib-dynload/readline.so", 2);
import readline # dynamically loaded from 
/usr/lib/python2.7/lib-dynload/readline.so
>>>
 > export ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python2

W dniu środa, 7 października 2015 15:31:00 UTC użytkownik rm_czuga napisał:
>
> Hi there, after changing my linux distribution from debian to arch i've 
> got little issue to run playbooks. When ansbile was installed by pacman i 
> have error like:
>
> Traceback (most recent call last):
>   File "/usr/bin/ansible-playbook", line 324, in <module>
>     sys.exit(main(sys.argv[1:]))
>   File "/usr/bin/ansible-playbook", line 264, in main
>     pb.run()
>   File "/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py", 
> line 310, in run
>     play = Play(self, play_ds, play_basedir, 
> vault_password=self.vault_password)
>   File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 
> 103, in __init__
>     ds = self._load_roles(self.roles, ds)
>   File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 
> 440, in _load_roles
>     roles = self._build_role_dependencies(roles, [], {})
>   File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 
> 282, in _build_role_dependencies
>     dependencies = data.get('dependencies',[])
> AttributeError: 'list' object has no attribute 'get'
>
> But when I uninstall package by pacman and install by pip I've got:
>
>   File "/usr/bin/ansible-playbook", line 218
>     print ''
>            ^
> SyntaxError: Missing parentheses in call to 'print'
>
> On this same playbooks...
> Version of ansible is 1.9.3 in both cases.
> Many thanks for help.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bf211f66-cbf5-4c29-b1cb-86e4272a0c69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to