ephes / kptncook

Fetch receipts from kptncook API and export them to mealie or paprika
MIT License
42 stars 4 forks source link

Breaking changes in pydantic #40

Closed Kadz93 closed 3 months ago

Kadz93 commented 3 months ago

Hey there pydantic has switched its version therefore this repo needs an update.

Traceback (most recent call last):
  File "/root/.local/bin/kptncook", line 5, in <module>
    from kptncook import cli
  File "/root/.local/pipx/venvs/kptncook/lib/python3.9/site-packages/kptncook/__init__.py", line 15, in <module>
    from .api import KptnCookClient, parse_id
  File "/root/.local/pipx/venvs/kptncook/lib/python3.9/site-packages/kptncook/api.py", line 8, in <module>
    from .config import settings
  File "/root/.local/pipx/venvs/kptncook/lib/python3.9/site-packages/kptncook/config.py", line 7, in <module>
    from pydantic import (
  File "/root/.local/pipx/venvs/kptncook/lib/python3.9/site-packages/pydantic/__init__.py", line 395, in __getattr__
    return _getattr_migration(attr_name)
  File "/root/.local/pipx/venvs/kptncook/lib/python3.9/site-packages/pydantic/_migration.py", line 296, in wrapper
    raise PydanticImportError(
pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the
`pydantic-settings` package. See https://docs.pydantic.dev/2.8/migration/#basesettings-has-moved-to-pydantic-settings for more details.