Skip to content

HELP NEEDED: AnsibleCollectionFinder has not been installed in this process once again #4728

@hinskii

Description

@hinskii

Regression in ansible-compat v25.8.0: an AnsibleCollectionFinder has not been installed in this process

Description

After upgrading ansible-lint to version 25.8.1, which uses ansible-compat v25.8.0, we are once again encountering the error described in ansible-lint issue #2945 when running ansible-lint in our CI pipeline:

an AnsibleCollectionFinder has not been installed in this process
Exit code: 1

This issue did not occur with ansible-compat v25.6.0 (and earlier in our setup). The problem reappeared immediately after the v25.8.0 release, suggesting a regression.

Environment

  • ansible-lint version: 25.x (reproduced with version 25.8.1)
  • ansible-core version: 2.19.0
  • ruamel-yaml: 0.18.14
  • Python: 3.13
  • Executor: GitLab CI with Docker (python:3.13 image)

Steps to Reproduce

  1. Install ansible-lint (which pulls in ansible-compat v25.8.0 by default)
  2. Run ansible-lint on a playbook or role
  3. Observe failure with AnsibleCollectionFinder has not been installed...

Expected Behavior

ansible-lint should execute normally without error.

Actual Behavior

ansible-lint exits with code 1 and prints the AnsibleCollectionFinder has not been installed in this process error.

Workaround

I found that pinning ansible-compat to version 25.6.0 during ansible-lint installation resolves the issue.

pip install "ansible-lint~=25.6.0" -c constraints.txt

(where constraints.txt contains ansible-compat==25.6.0)

Additional Info

This same error appeared in earlier releases and was previously resolved. using ansible-compoat v25.8.0 seems to have reintroduced it.

Thanks for looking into this!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions