tenstorrent / tt-smi

Tenstorrent console based hardware information program
Apache License 2.0
21 stars 6 forks source link

Switch required pydantic versioning to accomodate v2 #29

Closed warthog9 closed 3 months ago

warthog9 commented 3 months ago

Pydantic has a ground up re-write that's starting to make it into newer distros, F40, OpenSuse Tumbleweed, etc which includes pydantic v1 support, but breaks the default importing we are doing.

This adjusts the base pydantic in pyproject.toml to be a minimum of 1.2 (to meet Ubuntu 20.04 baseline requirements) and adds a try/except block to try loading the correct pydantic version where we are expecting.

Quick check on F40, in a venv, this plus the change in tt-tools-common to do roughly the same thing should sort out #27

sbansalTT commented 3 months ago

Verified it works on Ubuntu 20.04 system