[MacPorts] #68117: ansible-lint doesn't work

MacPorts noreply at macports.org
Tue Sep 12 11:27:00 UTC 2023


#68117: ansible-lint doesn't work
---------------------------+----------------------
  Reporter:  huyz          |      Owner:  judaew
      Type:  defect        |     Status:  reopened
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  ansible-lint  |
---------------------------+----------------------

Comment (by iay):

 I'm seeing a slightly different, but probably related, issue with 6.19.0.
 The difference may be that today is the first time I have installed this.

 ```
 $ /opt/local/bin/ansible-lint --version
 Traceback (most recent call last):
   File "/opt/local/bin/ansible-lint", line 5, in <module>
     from ansiblelint.__main__ import _run_cli_entrypoint
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/ansiblelint/__main__.py", line 39, in <module>
     from ansiblelint import cli
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/ansiblelint/cli.py", line 12, in <module>
     from ansiblelint.config import (
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/ansiblelint/config.py", line 101, in <module>
     PROFILES = yaml_from_file(Path(__file__).parent / "data" /
 "profiles.yml")
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/ansiblelint/loaders.py", line 39, in yaml_from_file
     with open(str(filepath), encoding="utf-8") as content:
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 FileNotFoundError: [Errno 2] No such file or directory:
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/ansiblelint/data/profiles.yml'
 ```

 The `data` directory is entirely missing.

-- 
Ticket URL: <https://trac.macports.org/ticket/68117#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list