Secret Field not be imported when using prefect

21 views Asked by At

ImportError: cannot import name 'SecretField' from 'pydantic'

Hi guys, i having some trouble when using prefect I was installed prefect, activate venv and i had this :D ImportError: cannot import name 'SecretField' from 'pydantic' ModuleNotFoundError: No module named 'prefect' Someone help me :((

1

There are 1 answers

0
jeffhale On

What version of Prefect are you using?

If you can upgrade Prefect and its dependencies, that should fix it.

If using pip, run pip install -U prefect

Recent Prefect versions specify a pinned Pydantic version, which should resolve the issue.