-
Notifications
You must be signed in to change notification settings - Fork 3
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
Dependency conflict between the cashfree-pg package and the pydantic package #49
Comments
Can you try dependency overriding. |
hi @suhas-cashfree For me the dependency didn't work, and it throwed the error -> File "/usr/local/lib/python3.11/site-packages/cashfree_pg/models/offer_validations_payment_method.py", line 58, in OfferValidationsPaymentMethod For further information visit https://errors.pydantic.dev/2.5/u/removed-kwargs is it possible for you to upgrade the versiona and support the latest. I don't want to fork the repository and update it manually? |
What is the pydantic version you are using @pradeeprecoup ? |
hi @suhas-cashfree pydantic 2.5.3 |
Have to check what we can do for this. Right now our pydantic supports < 2 |
No, it gave the above error at run time. |
So @suhas-cashfree what are suggest, how to go about it? Should i directly call the api? Because we are evaluating cashfree and if the development time is more on this.. then we can try some other gateway? |
You can hit the api directly. Meanwhile we will try to get a solution for this |
What are the apis you are hitting ? |
Order/ Payment/ Refund/Webhook for now. Payment links also |
any update on this, till when can we expect the updated l |
What is the pydantic version you are using @vedrk5672 ? |
@suhas-cashfree pydantic = "2.6.1" |
hey @suhas-cashfree any updates ? or any workaround apart from using requests directly. |
You can downgrade pydantic version ? |
Downgrading is not possible in the current scenario. |
File "/lib/python3.12/site-packages/cashfree_pg/api_client.py", line 245, in @suhas-cashfree please find the above mentioned error. |
Any update on this? I am on pydantic version 2.9.2. No way for me to downgrade to version < 2. |
Hi @ajatkj |
cashfree-pg version 4.0.3 requires pydantic version >=1.10.5,<2. My project requires pydantic version ^2.5.2, which is incompatible with the version required by cashfree-pg.
I can't downgrade my pydantic version as other features heavily rely on this.
So what if I use Dependency Overrides but it might lead to runtime errors if cashfree_pg is not compatible with the newer version of pydantic?
The text was updated successfully, but these errors were encountered: