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!
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!
FS#41482 - [ansible] Python errors with ansible-doc -l
Attached to Project:
Community Packages
Opened by Phillip Smith (fukawi2) - Wednesday, 06 August 2014, 03:25 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Friday, 12 September 2014, 11:13 GMT
Opened by Phillip Smith (fukawi2) - Wednesday, 06 August 2014, 03:25 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Friday, 12 September 2014, 11:13 GMT
|
DetailsWhen running ansible-doc -l, I get a bunch of python errors (below).
Removing /usr/share/ansible/examples/ansible.cfg and /usr/share/ansible/examples/hosts stops this -- not sure that is a correct/valid solution though. $ pacman -Q ansible ansible 1.6.6-1 $ ansible-doc -l Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ansible/utils/module_docs.py", line 50, in get_docstring M = ast.parse(''.join(open(filename))) File "/usr/lib/python2.7/ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "<unknown>", line 14 hostfile = /etc/ansible/hosts ^ SyntaxError: invalid syntax Traceback (most recent call last): File "/usr/sbin/ansible-doc", line 179, in get_module_list_text desc = tty_ify(doc.get('short_description', '?')) AttributeError: 'NoneType' object has no attribute 'get' ERROR: module ansible.cfg has a documentation error formatting or is missing documentation Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ansible/utils/module_docs.py", line 50, in get_docstring M = ast.parse(''.join(open(filename))) File "/usr/lib/python2.7/ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "<unknown>", line 15 192.168.100.1 ^ SyntaxError: invalid syntax Traceback (most recent call last): File "/usr/sbin/ansible-doc", line 179, in get_module_list_text desc = tty_ify(doc.get('short_description', '?')) AttributeError: 'NoneType' object has no attribute 'get' ERROR: module hosts has a documentation error formatting or is missing documentation |
This task depends upon
Closed by Bartłomiej Piotrowski (Barthalion)
Friday, 12 September 2014, 11:13 GMT
Reason for closing: Fixed
Additional comments about closing: ansible 1.7.1-3
Friday, 12 September 2014, 11:13 GMT
Reason for closing: Fixed
Additional comments about closing: ansible 1.7.1-3
I tried `export ansible_python_interpreter=/usr/bin/python2` anyway, but the same result.
Maybe installing the examples folder in /usr/share/doc/ansible would be somewhat more sensible?