Awaish Kumar
12/05/2023, 7:35 AMValidation of flow parameters failed with error:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 434, in retrieve_flow_then_begin_flow_run
parameters = flow.validate_parameters(flow_run.parameters)
File "/usr/local/lib/python3.9/site-packages/prefect/flows.py", line 502, in validate_parameters
validated_fn = V2ValidatedFunction(
File "/usr/local/lib/python3.9/site-packages/pydantic/v1/decorator.py", line 126, in __init__
File "/usr/local/lib/python3.9/site-packages/prefect/_internal/pydantic/v2_validated_func.py", line 51, in create_model
class DecoratorBaseModel(BaseModel):
File "/usr/local/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 92, in __new__
File "/usr/local/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 308, in inspect_namespace
File "pydantic/fields.py", line 32, in init pydantic.fields
File "pydantic/class_validators.py", line 8, in init pydantic.class_validators
File "/usr/local/lib/python3.9/site-packages/pydantic/_migration.py", line 278, in wrapper
ModuleNotFoundError: No module named 'pydantic._internal._validators'
Packages:
prefect==2.14.5
prefect-dbt==0.4.1Uriel Mandujano
12/05/2023, 3:59 PMAwaish Kumar
12/05/2023, 10:07 PMUriel Mandujano
12/05/2023, 10:33 PMprefect
is installed is that we pull the latest version of pydantic
. Do you remember which image you were working with that had the issue? Was it one of our provided images i.e. prefecthq/prefect
?Awaish Kumar
12/06/2023, 1:42 PM