-
Notifications
You must be signed in to change notification settings - Fork 4
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
from rss_parser import Parser throws error #42
Comments
That's very interesting, I can assure you I was testing the examples I put in readme, but there may be some missed stuff when doing a lot of refactoring. I'll look into it and will be back with an answer/fix today/tomorrow |
Or perhaps there's an update to pydantic, which removed this model from this module, but for my testing I was running an older version. Will check that too and possibly will add a conditional import to support both versions |
Sad that this issue came to my attention only after 2 days, I'll need to check notification settings |
Hey, @ConstantineK ,it seems like you have pydantic 2 installed, which is a major release with breaking changes. All works on |
Makes total sense! Thanks for checking in on this. |
Sure, glad it helped 🙂 |
There's now a fallback to allow pydantic v2 usage without breaking the code in v1.2.1 |
Issue
The most basic example code I was running returned a -
ImportError: cannot import name 'GenericModel' from 'pydantic.generics'
I simplified it down to
from rss_parser import Parser
- what am I doing wrong here?Installing
A boring install of rss-parser, went fine.
Running
Running the most basic example
The text was updated successfully, but these errors were encountered: