Closed JelleZijlstra closed 1 year ago
This is actually fixed in pydantic 1.10.2 (pydantic/pydantic#4012), but spaCy currently requires pydantic <1.10.0
. Relaxing that requirement should fix this issue. I found that PR #11635 already relaxed the requirement, so the next release that incorporates that PR should also fix this issue.
Thanks for the heads-up! We are doing a little testing for 3.11 ourselves, but every bit of information like this helps.
Updates for python 3.11 for all our packages are in progress (the only remaining ones are srsly
, thinc
, and spacy
) and should be ready by the official release date.
This should be resolved by the release of spacy v3.4.2. Please let us know if you run into any problems!
This issue has been automatically closed because it was answered and there was no follow-up discussion.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
How to reproduce the behaviour
python3.11 -m pip install spacy
import spacy
The class it's choking on is here: https://github.com/explosion/spaCy/blob/ceb62352bfcad49b3ad63e3e65ef12dabab645b3/spacy/schemas.py#L158 The
IN
field has an aliasin
, which is causing problems.This behavior was changed in python/cpython#92062 (which I approved, sorry for that).
Your Environment