HumanSignal/label-studio-ml-backend

ImportError: cannot import name 'field_serializer' from 'pydantic' (/usr/local/lib/python3.10/site-packages/pydantic/__init__.cpython-310-x86_64-linux-gnu.so)

Opened this issue · 1 comments

Hello, so I try to implement a custom NER+L model into Label Studio via the ML backend. I have a problem where I cannot do the docker compose command because there is an error mentioned in the title. I try to upgrade the pydantic but looks like the docker do not use my own conda env so how to fix it? If upgrading the pydantic is the solution, how and where should I do the pip install --upgrade pydantic? Thank you

Could you please re-pull label-studio-ml and label-studio-sdk libs and check it again?
label-studio-ml depends on label-studio-sdk.
pydantic is included in sdk here: https://github.com/HumanSignal/label-studio-sdk/blob/master/pyproject.toml#L44