fix python library import
as reflected here: https://docs.pydantic.dev/2.10/migration/#basesettings-has-moved-to-pydantic-settings
I don't think this works on QGIS 3.40
I had the same issue (on 3.44.4-Solothurn - win11). I edited the two lines in the QGIS3\profiles\default\python\plugins\qgis_stac\lib\planetary_computer\settings.py as mentioned in this PR. But it still failed. Some ninj-AI told me to open OSGeo4WShell (QGIS python) and do both
pip install --upgrade pydantic pydantic-core
Successfully installed pydantic-2.12.4 pydantic-core-2.41.5 typing-extensions-4.15.0 typing-inspection-0.4.2
and
pip install --upgrade pydantic pydantic-settings
Successfully installed pydantic-settings-2.11.0 python-dotenv-1.2.1
And now it loads ok!
I havent played around alot with QGIS afterwards - but havent experienced any errors after this - YET.