Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LWserenic opened this issue Aug 8, 2024 · 1 comment

Comments

@LWserenic
Copy link

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

@makseq
Copy link
Member

makseq commented Sep 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants