Skip to content

Failing to find sonarr-py when installed via UV #96

Description

@vincecima

I am using UV to manage my Ansible project and running into a strange error.

I did uv add sonarr-py and uv sync to confirm that sonarr-py is installed. I double checked via the Python console

>>> try:
...     import sonarr
...     HAS_SONARR_LIBRARY = True
... except ImportError:
...     HAS_SONARR_LIBRARY = False
...
>>> HAS_SONARR_LIBRARY
True

However when I use devopsarr.sonarr.sonarr_quality_profile in a playbook, the task fails and I get the error message: Please install the sonarr library. I kickoff the playbook execution via uv run ansible-playbook and I do use other Python libraries without issue.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions