Hey does anyone came across below error. ```Valid...
# ask-community
a
Hey does anyone came across below error.
Copy code
Validation 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.1
u
We've done some work this year to support pydantic v2 in prefect and an error like this looks like it would be related. Can you share two more pieces of information? • the pydantic version you have installed • what your code looks like? specifically any pydantic models and how you're passing them into your flow
a
Hi @Uriel Mandujano I did not had any pydantic model. Prefect itself using some pydantic models and surprisingly it did not install the correct version in. of its images. I just upgraded pydantic and it worked.
u
That's worrisome 😞 what should happen when
prefect
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
?
a