fix python library import#267
Conversation
marcusmueller
left a comment
There was a problem hiding this comment.
Looks good to me, but question: does this break with previous versions of pydantic that might still be used?
|
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
and pip install --upgrade pydantic pydantic-settings
And now it loads ok! I havent played around alot with QGIS afterwards - but havent experienced any errors after this - YET. |
as reflected here: https://docs.pydantic.dev/2.10/migration/#basesettings-has-moved-to-pydantic-settings