The enhanced-latest version of the container does not start
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
When launching the `enhanced-latest` container, the following errors occur:
```
2023-08-18 13:57:37 /usr/local/lib/python3.9/site-packages/pydantic/_migration.py:276: UserWarning: `pydantic.generics:GenericModel` has been moved to `pydantic.BaseModel`.
2023-08-18 13:57:37 warnings.warn(f'`{import_path}` has been moved to `{new_location}`.')
2023-08-18 13:57:37 Traceback (most recent call last):
2023-08-18 13:57:37 File "/usr/local/bin/indigo_service", line 5, in
2023-08-18 13:57:37 from indigo_service.indigo_http import run_debug
2023-08-18 13:57:37 File "/usr/local/lib/python3.9/site-packages/indigo_service/indigo_http.py", line 26, in
2023-08-18 13:57:37 from indigo_service import jsonapi, service
2023-08-18 13:57:37 File "/usr/local/lib/python3.9/site-packages/indigo_service/jsonapi.py", line 50, in
2023-08-18 13:57:37 class PrimitiveFormat(BaseModel):
2023-08-18 13:57:37 File "/usr/local/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 98, in __new__
2023-08-18 13:57:37 private_attributes = inspect_namespace(
2023-08-18 13:57:37 File "/usr/local/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 291, in inspect_namespace
2023-08-18 13:57:37 raise TypeError("To define root models, use `pydantic.RootModel` rather than a field called '__root__'")
2023-08-18 13:57:37 TypeError: To define root models, use `pydantic.RootModel` rather than a field called '__root__'
```
This applies to version 1.13 and 1.12.
Version 1.11 is working properly.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure by launching the enhanced-latest container, then inspect indigo_service/jsonapi.py around the PrimitiveFormat model and the displayed Pydantic migration warning. The work is done when versions 1.12 and 1.13 start without the RootModel TypeError while version 1.11 remains working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100