You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although this repository seems to not define any dependency, it uses pydantic.
I tried to migrate a stac_fastapi project to fastapi 0.100.0 and pydantic 2, but I've import errors:
File "/Users/keul/mambaforge/envs/copds3.10/lib/python3.10/site-packages/stac_fastapi/types/core.py", line 9, in <module>
from stac_pydantic.links import Relations
File "/Users/keul/mambaforge/envs/copds3.10/lib/python3.10/site-packages/stac_pydantic/__init__.py", line 1, in <module>
from .catalog import Catalog
File "/Users/keul/mambaforge/envs/copds3.10/lib/python3.10/site-packages/stac_pydantic/catalog.py", line 5, in <module>
from stac_pydantic.links import Links
File "/Users/keul/mambaforge/envs/copds3.10/lib/python3.10/site-packages/stac_pydantic/links.py", line 59, in <module>
class Links(BaseModel):
File "/Users/keul/mambaforge/envs/copds3.10/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 95, in __new__
private_attributes = inspect_namespace(
File "/Users/keul/mambaforge/envs/copds3.10/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 279, in inspect_namespace
raise TypeError("To define root models, use `pydantic.RootModel` rather than a field called '__root__'")
TypeError: To define root models, use `pydantic.RootModel` rather than a field called '__root__'
Pydantic 2 has been released. Any plan to migrate?
The text was updated successfully, but these errors were encountered:
Although this repository seems to not define any dependency, it uses pydantic.
I tried to migrate a stac_fastapi project to fastapi 0.100.0 and pydantic 2, but I've import errors:
Pydantic 2 has been released. Any plan to migrate?
The text was updated successfully, but these errors were encountered: