Skip to content

Using python-on-whales installed via Poetry throws Pydantic errors #559

Closed
@ivanabrkic

Description

Hello everyone!

I have an issue with using python-on-whales installed via poetry.

poetry version: 1.8.2 (installed via pipx)
python version: 3.9.6
python-on-whales version: 0.68.0

When running my python script, I am getting this error:

pydantic_core._pydantic_core.ValidationError: 10 validation errors for ComposeConfig services.anvil.entrypoint Input should be a valid list [type=list_type, input_value='anvil', input_type=str] For further information visit https://errors.pydantic.dev/2.5/v/list_type services.api_redis_pubsub_handler.command Input should be a valid list [type=list_type, input_value='python project_root/api...redis_pubsub_handler.py', input_type=str]

Error source:

docker.compose.config()

I did manage to bypass this error when I used return_json = True parameter, but then I got other errors, also regarding python-on-whales commands. These errors are not that much relevant because this setup was working before and then I had to reinstall my system - and now I'm blocked.

Do you have any idea why I have these issues?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions