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

Ormar and pydantic-settings incompatibility #1396

Open
markjrouse opened this issue Sep 20, 2024 · 1 comment
Open

Ormar and pydantic-settings incompatibility #1396

markjrouse opened this issue Sep 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@markjrouse
Copy link

markjrouse commented Sep 20, 2024

Describe the bug
Can't install pydantic-settings if ormar is installed due to incompatibility issues.

"Because no versions of pydantic-settings match >2.5.2,<3.0.0
and pydantic-settings (2.5.2) depends on pydantic (>=2.7.0), pydantic-settings (>=2.5.2,<3.0.0) requires pydantic (>=2.7.0).
And because ormar (0.20.1) depends on pydantic (v2.5.3)
and no versions of ormar match >0.20.1,<0.21.0, pydantic-settings (>=2.5.2,<3.0.0) is incompatible with ormar (>=0.20.1,<0.21.0).
So, because reason-capdis depends on both ormar (^0.20.1) and pydantic-settings (^2.5.2), version solving failed."

To Reproduce
Steps to reproduce the behavior:

  1. poetry add ormar
  2. poetry add pydantic-settings

(Note: this should be a complete and concise piece of code that allows reproduction of an issue)

Expected behavior
I should be able to add both ormar and pydantic-settings

Versions (please complete the following information):

  • Database backend used (postgress)
  • Python 3.11
  • ormar 0.20.1
  • pydantic 2.5.2
  • if applicable fastapi ^0.111.0
@markjrouse markjrouse added the bug Something isn't working label Sep 20, 2024
@ariel-frischer
Copy link

Running into a similar issue looking for ormar to support pydantic >=2.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants