You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue while updating my server to version 2.1.1, and here's how I resolved it.
During the update, I faced the following error:
<omitted>
File "/home/kazu/miniconda3/envs/kazuenv/lib/python3.9/site-packages/spacy/tokens/_serialize.py", line 14, in <module>
from ..vocab import Vocab
File "spacy/vocab.pyx", line 1, in init spacy.vocab
File "spacy/tokens/doc.pyx", line 49, in init spacy.tokens.doc
File "/home/kazu/miniconda3/envs/kazuenv/lib/python3.9/site-packages/spacy/schemas.py", line 287, in <module>
class TokenPattern(BaseModel):
File "pydantic/main.py", line 299, in pydantic.main.ModelMetaclass.__new__
File "pydantic/fields.py", line 411, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 342, in pydantic.fields.ModelField.__init__
File "pydantic/fields.py", line 451, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 545, in pydantic.fields.ModelField._type_analysis
File "pydantic/fields.py", line 550, in pydantic.fields.ModelField._type_analysis
File "/home/kazu/miniconda3/envs/kazuenv/lib/python3.9/typing.py", line 852, in __subclasscheck__
return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class
I resolved this by updating the Pydantic version from 1.8.2 to 1.10.17.
Here are the versions that work without any issues:
typing-extensions==4.12.2
pydantic==1.10.17
The text was updated successfully, but these errors were encountered:
Hi,
I encountered an issue while updating my server to version 2.1.1, and here's how I resolved it.
During the update, I faced the following error:
I resolved this by updating the Pydantic version from 1.8.2 to 1.10.17.
Here are the versions that work without any issues:
The text was updated successfully, but these errors were encountered: