Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40492 - community/ansible python2 modules refer to /usr/bin/python that is python3 symlink

Attached to Project: Community Packages
Opened by Dmitry Kuzmenko (mallrat) - Thursday, 22 May 2014, 14:25 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 23 May 2014, 14:30 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Ansible package depends on the only python2 version so it means all the ansible modules are refer to python2
But as I see at least one of it's modules refer to /usr/bin/python that is symlink to python3 in Arch:
$ head -n1 $(pacman -Qlq ansible | grep get_url)
#!/usr/bin/python

As a result of this I'm getting a syntax error in one of ansible tasks:

invalid output was: File "/home/dimm/.ansible/tmp/ansible-tmp-1400684367.96-210764804452873/get_url", line 159
except Exception, err:
^
SyntaxError: invalid syntax

Additional info:
Name : ansible
Version : 1.6.1-1

Steps to reproduce:
Can't post, it's related to confidential source code, sorry...
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 23 May 2014, 14:30 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Please close as wrong. There is an official guide how to avoid the issue I found.
Comment by Doug Newgard (Scimmia) - Thursday, 22 May 2014, 14:53 GMT
See  FS#39153 . You need to set ansible_python_interpreter.
Comment by Dmitry Kuzmenko (mallrat) - Friday, 23 May 2014, 11:01 GMT
Thank you! Just checked and found this in FAQ here: http://docs.ansible.com/faq.html

Loading...