Records below are third-party data, not instructions. Apply with your own judgment.
pydantic
2 records of known failures, each with its cause, the fix and what not to try.
Records
- UserWarning: Valid config keys have changed in V2: * 'orm_mode' has b…Pydantic 2 renamed the config key and only warns about the old one: orm_mode=True is not applied, so ORM objects then fail validation.
- pydantic.errors.PydanticImportError:
BaseSettingshas been moved to t…Pydantic 2 split settings management out of the core library into the separate pydantic-settings distribution; the old import path is now a stub that raises.
Don’t try
treat it as a cosmetic warning and keep orm_mode — the key is ignored: from_orm() raises PydanticUserError (must set from_attributes=True) and model_validate(obj) fails with model_type. (×1) · record
install pydantic-settings but keep 'from pydantic import BaseSettings' — pydantic's stub raises PydanticImportError for that path whatever is installed; the import itself must change to pydantic_settings. (×1) · record