Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydantic versions need debugging #61

Open
vsoch opened this issue Aug 19, 2023 · 0 comments · May be fixed by #62
Open

pydantic versions need debugging #61

vsoch opened this issue Aug 19, 2023 · 0 comments · May be fixed by #62

Comments

@vsoch
Copy link
Member

vsoch commented Aug 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant