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

Fix: Compatibility with Pedantic 2.x #67

Closed
olivmath opened this issue Sep 30, 2024 · 0 comments · Fixed by #68
Closed

Fix: Compatibility with Pedantic 2.x #67

olivmath opened this issue Sep 30, 2024 · 0 comments · Fixed by #68
Assignees
Labels
bug Something isn't working

Comments

@olivmath
Copy link
Owner

olivmath commented Sep 30, 2024

Describe the bug

When trying to add the merkly package to the project using Poetry, a dependency conflict occurs between merkly and eth-ape.

To Reproduce (Example)

I try it:

$ merkly-use-case poetry add merkly
Using version ^1.0.2 for merkly

Updating dependencies
Resolving dependencies... (0.2s)

Because no versions of merkly match >1.0.2,<2.0.0
 and merkly (1.0.2) depends on pydantic (>=1.10.2,<2.0.0), merkly (>=1.0.2,<2.0.0) requires pydantic (>=1.10.2,<2.0.0).
And because eth-ape (0.8.15) depends on pydantic (>=2.6.4,<3)
 and no versions of eth-ape match >0.8.15,<0.9.0, merkly (>=1.0.2,<2.0.0) is incompatible with eth-ape (>=0.8.15,<0.9.0).
So, because merkly-use-case depends on both eth-ape (^0.8.15) and merkly (^1.0.2), version solving failed.

To successfully add merkly to the project without conflicts.

Explanation

The error occurs due to conflicting dependencies:

  1. merkly (1.0.2) requires pydantic version >=1.10.2 and <2.0.0
  2. eth-ape (0.8.15) requires pydantic version >=2.6.4 and <3

These requirements are incompatible because:

  • merkly needs pydantic version 1.x
  • eth-ape needs pydantic version 2.x

Poetry's dependency resolver cannot find a combination of package versions that satisfies both these requirements simultaneously.

Screenshots

  • If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: iOS, Win, Ubuntu
  • Version: 13.4, 11, 21.10
  • Poetry version: [e.g., 1.1.11]
  • Python version: [e.g., 3.9.7]
@olivmath olivmath added the bug Something isn't working label Sep 30, 2024
@olivmath olivmath moved this to Todo in Merkly Use case Sep 30, 2024
@olivmath olivmath self-assigned this Sep 30, 2024
@olivmath olivmath added this to the Merkly Use Case Work milestone Sep 30, 2024
@olivmath olivmath linked a pull request Oct 19, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from Ready to Done in Merkly Use case Oct 19, 2024
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
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant