-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I tried pinning to 2.0.1 to resolve an error, but it seems there are more!
Adding 'treenut' with password 'treenut'
.
/usr/local/lib/python3.8/dist-packages/pydantic/_internal/_config.py:257: UserWarning: Valid config keys have changed in V2:
* 'orm_mode' has been renamed to 'from_attributes'
warnings.warn(message, UserWarning)
Traceback (most recent call last):
File "./app/db/init_db.py", line 16, in <module>
from app.db.session import SessionLocal # noqa
File "/flux-restful-api/./app/db/session.py", line 4, in <module>
from app.core.config import settings
File "/flux-restful-api/./app/core/config.py", line 8, in <module>
from pydantic import BaseSettings
File "/usr/local/lib/python3.8/dist-packages/pydantic/__init__.py", line 206, in __getattr__
return _getattr_migration(attr_name)
File "/usr/local/lib/python3.8/dist-packages/pydantic/_migration.py", line 279, in wrapper
raise PydanticImportError(
pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.0.1/migration/#basesettings-has-moved-to-pydantic-settings for more details.
For further information visit https://errors.pydantic.dev/2.0.1/u/import-error
/flux_operator/wait-0.sh: line 253: python: command not found
I haven't built this in a while and just need to take a look again.
Metadata
Metadata
Assignees
Labels
No labels