HumanSignal / HumanSignal/label-studio-ml-backend

pydantic module version error

Open
#583 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.1k
Forks
490
Avg merge
1d 14h
Merged PRs (30d)
3

Description

I have trying to install ML backend latest but unfortunately I am getting error:

`/home/marlo/.local/lib/python3.10/site-packages/pydantic/_internal/_config.py:341: UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
warnings.warn(message, UserWarning)
/home/marlo/.local/lib/python3.10/site-packages/pydantic/_internal/_fields.py:161: UserWarning: Field "model_version" has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
`
![Screenshot_20240727_232153](https://github.com/user-attachments/assets/36ac26ed-f703-4db1-8ad9-29d92fc01b7f)

I tried to downgrade the pydantic module and run it again, but other problems occurred.

When I examined the ML backend codes, I saw that the response.py file uses this module. But I can't find a solution.

![Screenshot_20240727_232451](https://github.com/user-attachments/assets/1dd4a7d7-70f4-49c1-a2aa-5675c596f352)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.