I am using Sagemaker notebook and when importing vaex, I am getting the below error. the version of vaex I'm using is 4.16.0
PydanticImportError: BaseSettings
has been moved to the pydantic-settings
package. See https://docs.pydantic.dev/2.0.2/migration/#basesettings-has-moved-to-pydantic-settings for more details.
For further information visit https://errors.pydantic.dev/2.0.2/u/import-error
Anyone knows how to solve this?
I tried downgrading the pydantic library while installing vaex but that didn't help.
What i have done Migration Guide
pip install pydantic-settings
I replaced in my code:
# from pydantic import BaseSettings # OLD
from pydantic_settings import BaseSettings # NEW
In pydantic-V2
, Settings management has been moved to a separate package named pydantic-settings
.
You can install it by pip install pydantic-settings
.
If you still want to have V1-style settings management in V2
, you can import it like:
from pydantic.v1 import BaseSettings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With