Resolving Pydantic Version Errors in CrewAI

Every time I run the command crewai run, I encounter an error related to the Pydantic version. If I downgrade the version, I see a different error. Has anyone else faced the same issue and resolved it? Below is the initial error I typically encounter:

crewai run
C:\demo\Master_crewAI.env\Lib\site-packages\pydantic_internal_config.py:345: UserWarning: Valid config keys have changed in V2:

  • ‘fields’ has been removed
    warnings.warn(message, UserWarning)
    Running the Crew
    C:\demo\Master_crewAI\master-crewai-course\latest_ai_development.venv\Lib\site-packages\pydantic_internal_config.py:345: UserWarning: Valid config keys have changed in V2:
  • ‘fields’ has been removed
    warnings.warn(message, UserWarning)

It’s just a warning and can be ignored

This is caused by one of our dependencies and will be suppressed in the next version we release

1 Like