python-openhab icon indicating copy to clipboard operation
python-openhab copied to clipboard

model_dump error: pydantic 2.0 vs pydantic 1.10

Open bob-tm opened this issue 1 year ago • 1 comments

Hello,

Latest openhab code requires pydantic 2.0

token=self.oauth2_config.token.model_dump(),

model_dump is absent in pydantic 1.10

it it possible to adapt openhab code to pydantic 1.10 ? I try to add pydantic 2.0 to manifest.json, but always receive

Cannot install pydantic==2.* because these package versions have conflicting dependencies.

have no ideas ...

bob-tm avatar Jan 03 '24 15:01 bob-tm

Hi,

What python version are you using ? Where does that manifest.json come from ?

sim0nx avatar Jan 03 '24 15:01 sim0nx