JdeRobot / RoboticsApplicationManager

Robotic applications lifecycle management
3 stars 12 forks source link

Pydantic error during LauncherEngine import #45

Closed pawanw17 closed 1 year ago

pawanw17 commented 1 year ago

Seen on Humble miniRADI

image

root@040af27c8652:/# ./entrypoint.sh BASE_DIR /RoboticsAcademy Traceback (most recent call last): File "//RoboticsAcademy/src/manager/manager/manager.py", line 17, in from src.manager.manager.launcher.launcher_engine import LauncherEngine File "/RoboticsAcademy/src/manager/manager/launcher/launcher_engine.py", line 9, in class LauncherEngine(BaseModel): File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_model_construction.py", line 95, in new private_attributes = inspect_namespace( File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_model_construction.py", line 328, in inspect_namespace raise PydanticUserError( pydantic.errors.PydanticUserError: A non-annotated attribute was detected: module = 'src.manager.manager.launcher'. All model fields require a type annotation; if module is not meant to be a field, you may be able to resolve this error by annotating it as a ClassVar or updating model_config['ignored_types'].

pawanw17 commented 1 year ago

The issue is due to the latest version of Pydantic that the miniRADI installs

We don't support pydantic v 2.0.x