data-mie / dbt-cloud-cli

dbt Cloud command line interface (CLI)
Apache License 2.0
71 stars 9 forks source link

Newly released Pydantic version has a breaking change in dbt-cloud-cli #74

Closed runar-alvseike closed 1 year ago

runar-alvseike commented 1 year ago

Following the new version of Pydantic provides an breaking change in dbt-cloud-cli.

Running dbt-cloud job <arguments> provides the following traceback: pydantic.errors.PydanticUserError: Thefieldandconfigparameters are not available in Pydantic V2, please use theinfoparameter instead.

wonkyto commented 1 year ago

I also had this problem - it had worked a week earlier, but on a fresh pip install dbt-cloud-cli I came across this issue when pydantic 2.0.2 was installed automatically.

By first installing pydantic 1.10.9 before dbt-cloud-cli I was able to work around this issue

pip install pydantic==1.10.9
pip install dbt-cloud-cli
stumelius commented 1 year ago

Fixed in #75

stumelius commented 1 year ago

@runar-alvseike FYI https://github.com/data-mie/dbt-cloud-cli/releases/tag/0.7.6