pvarki / docker-rasenmaeher-integration

Compositions etc to integrate all the pieces (CA, Keycload, LDAP, Database, REST API) into something cosmic
0 stars 0 forks source link

rmlocal-rmapi-1: pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package #11

Closed aarne33 closed 1 year ago

aarne33 commented 1 year ago

The complete error stack trace is visible in this repo's github actions visible at: https://github.com/pvarki/docker-rasenmaeher-integration/actions/runs/5990117815/job/16247079829

Here is a snippet taken from the complete trace:

rmlocal-rmapi-1 | File "<frozen importlib._bootstrap_external>", line 940, in exec_module rmlocal-rmapi-1 | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed rmlocal-rmapi-1 | File "/usr/local/lib/python3.11/site-packages/rasenmaeher_api/web/application.py", line 5, in <module> rmlocal-rmapi-1 | from rasenmaeher_api.settings import settings rmlocal-rmapi-1 | File "/usr/local/lib/python3.11/site-packages/rasenmaeher_api/settings.py", line 9, in <module> rmlocal-rmapi-1 | from pydantic import BaseSettings rmlocal-rmapi-1 | File "/usr/local/lib/python3.11/site-packages/pydantic/__init__.py", line 210, in __getattr__ rmlocal-rmapi-1 | return _getattr_migration(attr_name) rmlocal-rmapi-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rmlocal-rmapi-1 | File "/usr/local/lib/python3.11/site-packages/pydantic/_migration.py", line [289](https://github.com/pvarki/docker-rasenmaeher-integration/actions/runs/5990117815/job/16247079829#step:6:290), in wrapper rmlocal-rmapi-1 | raise PydanticImportError( rmlocal-rmapi-1 | pydantic.errors.PydanticImportError:BaseSettingshas been moved to thepydantic-settingspackage. See https://docs.pydantic.dev/2.3/migration/#basesettings-has-moved-to-pydantic-settings for more details. rmlocal-rmapi-1 | rmlocal-rmapi-1 | rmlocal-rmapi-1 | For further information visit https://errors.pydantic.dev/2.3/u/import-error rmlocal-rmapi-1 | [2023-08-27 09:35:45 +0000] [10] [INFO] Worker exiting (pid: 10)

aarne33 commented 1 year ago

@rambo FYI this problem doesn't exist on rmdev

aarne33 commented 1 year ago

Moved to: https://github.com/pvarki/python-rasenmaeher-api/issues/32