qgis-stac-plugin icon indicating copy to clipboard operation
qgis-stac-plugin copied to clipboard

fix python library import

Open owenh28 opened this issue 1 year ago • 2 comments

as reflected here: https://docs.pydantic.dev/2.10/migration/#basesettings-has-moved-to-pydantic-settings

owenh28 avatar Jan 22 '25 20:01 owenh28

I don't think this works on QGIS 3.40

cefect avatar Sep 29 '25 20:09 cefect

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.

SigTill avatar Nov 07 '25 20:11 SigTill