stac-fastapi icon indicating copy to clipboard operation
stac-fastapi copied to clipboard

Remove stac-pydantic dependency

Open gadomski opened this issue 2 years ago • 2 comments

stac-pydantic is unmaintained and lags well behind the STAC specification. We should remove our dependency on that package.

Alternatively, stac-pydantic could be brought up-to-date with the current STAC spec and pydantic v2. This would be more work.

gadomski avatar Jul 10 '23 14:07 gadomski

i do not know if this is related , but i have the feeling it might be. I get import errors with the latest library

Traceback (most recent call last):
  File "/home/..../stac_fastapi/elasticsearch/app.py", line 6, in <module>
    from stac_fastapi.api.models import create_get_request_model, create_post_request_model
  File "/home/.../.venv/lib/python3.8/site-packages/stac_fastapi/api/models.py", line 9, in <module>
    from pydantic.fields import UndefinedType
ImportError: cannot import name 'UndefinedType' from 'pydantic.fields' (/home/vagrant/Desktop/repos/data-downloaders/srs_download/.venv/lib/python3.8/site-packages/pydantic/fields.py)

Are there any constraints in package versions in order to make this work? whatever i do i get the above error

FYI "stac_pydantic==2.0.3", "stac-fastapi.types==2.4.8", "stac-fastapi.api==2.4.8", "stac-fastapi.extensions==2.4.8",

iliion avatar Sep 04 '23 15:09 iliion

It would be great if someone could review https://github.com/stac-utils/stac-pydantic/pull/127. I am happy to make further changes if necessary.

thomas-maschler avatar Sep 27 '23 02:09 thomas-maschler

in 3.0 we will still depends on stac-pydantic and it seems this will continue.

I'm going to closes this issue for now

vincentsarago avatar Jun 26 '24 10:06 vincentsarago