Skip to content

Bug: DEFAULT_PATH import error after 2.9.0 #605

@atti92

Description

@atti92
ImportError: cannot import name 'DEFAULT_PATH' from 'pydantic_settings.sources' (/usr/local/lib/python3.10/site-packages/pydantic_settings/sources/__init__.py)

This used to be importable from pydantic_settings.sources and now this is failing in our public packages where we depended on compatible versions for v2 major.

This public field was not deprecated or private, so nothing warrants the change.

I see this has been moved to pydantic_settings.sources.types and the "export" is missing in the __init__.py.

Since we can't fix imports in released packages, this is very important for us.

Thank you!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions