sim0nx / python-openhab

python library for accessing the openHAB REST API
https://python-openhab.readthedocs.io/en/latest/?badge=latest
GNU Affero General Public License v3.0
59 stars 27 forks source link

model_dump error: pydantic 2.0 vs pydantic 1.10 #33

Open bob-tm opened 6 months ago

bob-tm commented 6 months ago

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 ...

sim0nx commented 6 months ago

Hi,

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