HumanSignal / 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)
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 490
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the Docker Compose configuration and the container's dependency setup rather than the local conda environment. Check which Pydantic version is installed in the container and reproduce the import failure with the docker compose command. Done means the custom NER+L model backend starts without the ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, python
- Domain
- backend, devops, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100