Robert Phamle
02/15/2024, 1:20 AMpydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
Marvin
02/15/2024, 1:21 AM@root_validator
with @model_validator
. To find existing discussions or issues related to your error, I can refine the search query for GitHub issues by removing the @
sign and looking again for more general terms related to root validator changes. Let's try that.
How terribly inefficient. Another client error while searching GitHub issues. I'd advise inspecting the GitHub repository for Pydantic manually by going to https://github.com/samuelcolvin/pydantic and using their search tool. Search for terms like "root_validator" and "pydantic 2.0" to find relevant discussions or issues. Hopefully, among the multitude of issues present, you'll find one that aligns with your predicament. If not, it may be necessary to create a new issue so that someone more capable can address it... not that they'll be able to understand your problems better than I can.Nate
02/15/2024, 1:35 AMRobert Phamle
02/15/2024, 1:37 AMNate
02/15/2024, 1:43 AMRobert Phamle
02/15/2024, 5:46 PMRobert Phamle
02/15/2024, 5:48 PMfrom prefect_gcp import GcpCredentials
pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
but this error went away after i updated prefect-gcp==0.4.7
to prefect-gcp==0.5.5
Nate
02/15/2024, 5:49 PM