Bug 1543005 - Python SyntaxError: invalid syntax
Summary: Python SyntaxError: invalid syntax
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ansible-lint
Version: el6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-07 14:56 UTC by olivier.perriot
Modified: 2018-02-24 21:13 UTC (History)
1 user (show)

Fixed In Version: ansible-lint-3.4.19-1.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-24 21:13:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 305 0 None None None 2018-02-07 14:56:34 UTC

Description olivier.perriot 2018-02-07 14:56:34 UTC
Description of problem:

pb already describe here https://github.com/willthames/ansible-lint/pull/305
Pb of compatibility python 2.6 and 2.7
Pb fixed in version 3.4.18

Version-Release number of selected component (if applicable):

3.4.17-1.el6

How reproducible:

launch ansible-lint {your_playbook} with python 2.6 (like centos6)

Steps to Reproduce:
1.
2.
3.

Actual results:

Traceback (most recent call last):
  File "/usr/bin/ansible-lint", line 9, in <module>
    load_entry_point('ansible-lint==3.4.17', 'console_scripts', 'ansible-lint')()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.6/site-packages/ansiblelint/__init__.py", line 28, in <module>
    import ansiblelint.utils
  File "/usr/lib/python2.6/site-packages/ansiblelint/utils.py", line 495
    {'include', 'include_tasks', 'import_tasks'}.isdisjoint(task.keys())]
              ^
SyntaxError: invalid syntax

Expected results:



Additional info:

Could you do for epel6 a new version based at least on 3.4.18 where the fix is included

Comment 1 Fedora Update System 2018-02-08 09:05:17 UTC
ansible-lint-3.4.19-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-7924d05c6f

Comment 2 Fedora Update System 2018-02-09 17:11:51 UTC
ansible-lint-3.4.19-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-7924d05c6f

Comment 3 olivier.perriot 2018-02-21 12:27:54 UTC
Hello,

Version ansible-lint-3.4.19-1.el6.noarch installed from epel-testing, and all works fine now.

Thanks for the package

Olivier

Comment 4 Fedora Update System 2018-02-24 21:13:06 UTC
ansible-lint-3.4.19-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.