You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Pydantic v2 there have been code changes and this module won't load. I fixed it for my use case with "pydantic<2" in requirements but I guess that's not a long term solution.
Error:
File "/usr/local/lib/python3.10/dist-packages/aiokeydb/__init__.py", line 57, in <module>
from aiokeydb.client.serializers import SerializerType
File "/usr/local/lib/python3.10/dist-packages/aiokeydb/client/__init__.py", line 40, in <module>
from aiokeydb.client.config import KeyDBSettings
File "/usr/local/lib/python3.10/dist-packages/aiokeydb/client/config.py", line 8, in <module>
from aiokeydb.client.types import BaseSettings, validator, lazyproperty, KeyDBUri
File "/usr/local/lib/python3.10/dist-packages/aiokeydb/client/types.py", line 9, in <module>
from pydantic import BaseSettings as _BaseSettings
File "/usr/local/lib/python3.10/dist-packages/pydantic/__init__.py", line 206, in __getattr__
return _getattr_migration(attr_name)
File "/usr/local/lib/python3.10/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.
The text was updated successfully, but these errors were encountered:
With Pydantic v2 there have been code changes and this module won't load. I fixed it for my use case with "pydantic<2" in requirements but I guess that's not a long term solution.
Error:
The text was updated successfully, but these errors were encountered: