-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
FIXED: Pydantic issubclass error for python 3.8 and 3.9 #12659
Comments
Did the trick |
Installing typing_extensions==4.4.0 actually worked, thank you |
+1 for typing_extensions<4.6.0 thanks @vamshi9 |
I can confirm the suggested workaround did the trick. Thanks ! |
This issue should now be resolved with the release of Pydantic v1.10.8. |
+1 for typing_extensions<4.6.0 thanks |
Thank you very much. Yes +1 for adding typing_extensions<4.6.0 as dependency. |
Thank you very much for for adding typing_extensions<4.6.0. Really appreciate |
+1 for typing_extensions<4.6.0 - big thanks! |
This issue has been automatically closed because it was answered and there was no follow-up discussion. |
Bump version of tensorflow * Fix spacy version, bump the pydantic version because of explosion/spaCy#12659 * Fix ruff version because of new warnings * Fix spacy<3.5 because of tests/nlu/extractors/test_spacy_entity_extractors.py * Downgrade ruamel because of failing test tests/shared/nlu/training_data/formats/test_rasa_yaml.py::test_wrong_format_raises
Bump version of tensorflow * Fix spacy version, bump the pydantic version because of explosion/spaCy#12659 * Fix ruff version because of new warnings * Fix spacy<3.5 because of tests/nlu/extractors/test_spacy_entity_extractors.py * Downgrade ruamel because of failing test tests/shared/nlu/training_data/formats/test_rasa_yaml.py::test_wrong_format_raises
* Bump version of tensorflow (#12515) Bump version of tensorflow * Fix spacy version, bump the pydantic version because of explosion/spaCy#12659 * Fix ruff version because of new warnings * Fix spacy<3.5 because of tests/nlu/extractors/test_spacy_entity_extractors.py * Downgrade ruamel because of failing test tests/shared/nlu/training_data/formats/test_rasa_yaml.py::test_wrong_format_raises * Remove dependency on tensorflow-addons (#12514) Remove dependency on tensorflow-addons Copy tests for crf and metrics * Multi-platform image with GitHub Actions (#12528) * Build both platforms on the same machine * Bump version of tensorflow (#12515) Bump version of tensorflow * Fix spacy version, bump the pydantic version because of explosion/spaCy#12659 * Fix ruff version because of new warnings * Fix spacy<3.5 because of tests/nlu/extractors/test_spacy_entity_extractors.py * Downgrade ruamel because of failing test tests/shared/nlu/training_data/formats/test_rasa_yaml.py::test_wrong_format_raises * Remove dependency on tensorflow-addons (#12514) Remove dependency on tensorflow-addons Copy tests for crf and metrics * Multi-platform image with GitHub Actions (#12528) * Build both platforms on the same machine * Update poetry * Add changelog --------- Co-authored-by: Sanchari <s.ghosh@rasa.com>
fastapi 0.99.1 requires typing-extensions>=4.5.0, but you have typing-extensions 4.4.0 which is incompatible. 4.5.0 worked fine |
leaving typing extensions at 4.7 and upgrading the pydantic version worked for me! |
Updating Spacy to fix explosion/spaCy#12659
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. |
* update the spark version to the current version * update pin for pydantic to resolve explosion/spaCy#12659 * exclude koalas dataframes from test
* update the spark version to the current version * update pin for pydantic to resolve explosion/spaCy#12659 * exclude koalas dataframes from test (cherry picked from commit 824ca0f)
…#1055) (#1130) * Update the spark version to the current version (#1055) * update the spark version to the current version * update pin for pydantic to resolve explosion/spaCy#12659 * exclude koalas dataframes from test (cherry picked from commit 824ca0f) * Backport preleases. * Fix numpy issue. --------- Co-authored-by: VersusFacit <67295367+VersusFacit@users.noreply.github.com>
UPDATE: This is now fixed for spacy v3.4 and v3.5 with the release of Pydantic v1.10.8.
New installs with
pip install spacy
should work without issue.To fix an existing venv for spacy v3.4 or v3.5, please upgrade Pydantic to the latest compatible version with:
Or for a specific version of spacy:
For spacy v3.2 and v3.3, we have published patch releases with fixes for the
typing_extension
requirement. Upgrade to spacy v3.2.6+ or v3.3.3+:python -m pip install 'spacy~=3.2.6'
python -m pip install 'spacy~=3.3.3'
Original report:
There appears to be a bug in Pydantic v1.10.7 and earlier related to the recent release of
typing_extensions
v4.6.0 that causes errors forimport spacy
and any other spacy commands for python 3.8 and python 3.9.We're hoping that there will be an upstream fix soon. You can follow this issue for more details: pydantic/pydantic#5821
As a workaround, you can add
typing_extensions<4.6.0
to your requirements.The error traceback looks like this:
The text was updated successfully, but these errors were encountered: