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

module 'pydantic._internal._typing_extra' has no attribute 'add_module_globals' #113

Closed
bndr opened this issue Sep 6, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@bndr
Copy link

bndr commented Sep 6, 2024

🐛 Bug Report

AttributeError
module 'pydantic._internal._typing_extra' has no attribute 'add_module_globals'

🔬 How To Reproduce

Steps to reproduce the behavior:

  1. Import paddle client directly that is included in this package
    from paddle_billing_client.client import PaddleApiClient

📈 Expected behavior

📎 Additional context

AttributeError: module 'pydantic _internal _typing_extra' has no attribute 'add_module_globals' — mindnow-ag — vadim-play-proje… 2024-09-06 18-30-31
@bndr bndr added the bug Something isn't working label Sep 6, 2024
@bndr
Copy link
Author

bndr commented Sep 6, 2024

I had to downgrade pydantic package to bring everything back up, not sure what's wrong with that one.

pydantic-core==2.18.4

@bgervan
Copy link
Member

bgervan commented Sep 6, 2024

Thank for the notification.

Yes, something changed with pydantic 2.8, pydantic==2.7.4 work just fine. I will need to take a look what's changed and update the paddle billing package. I will fix the pydantic version once I found the issue so later it won't break again.

@bgervan
Copy link
Member

bgervan commented Sep 6, 2024

The root cause is in the api-client-pydantic pacakge, it limits the pydantic version with 3.0.0, and in 2.9.0 they changes something that breaks the package. I have added the pydantic deps in paddle-billing-client and set the hard limit with 2.8.2 for now.

@bgervan bgervan closed this as completed Sep 6, 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
None yet
Development

No branches or pull requests

2 participants