Skip to content

Problem with Pydantic Version #51

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

Open
amr-martini opened this issue May 1, 2025 · 2 comments
Open

Problem with Pydantic Version #51

amr-martini opened this issue May 1, 2025 · 2 comments

Comments

@amr-martini
Copy link

amr-martini commented May 1, 2025

I was having issues with importing spacy after running setup.sh. Specifically, upon importing spacy, class definitions from Spacy will try to leverage pydantic, but version 1.8.2 seems to be incompatible with spacy's class definitions and throw this error:

TypeError: issubclass() arg 1 must be a class

So I downgraded to pydantic version 1.7.4 and that seemed to fix spacy's issues.

@CostaliyA
Copy link

the same

@CostaliyA
Copy link

This works to me

pip install spacy==3.7.5  
pip install -U "pydantic>=2.0,<3.0"  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants