-
-
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
TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers' #12034
Comments
Thanks for the report! pydantic v1.10.3 has been yanked as a temporary workaround for this problem until our packages can be updated. |
Is there a workaround to this issue? Or do I need to wait for an update or something? Because I am still not able to install any spacy models |
If you install spacy in a new venv, it should work again for python 3.7 with no additional steps. To fix an existing python 3.7 venv, you can downgrade to For |
Oh thanks a lot for the swift reply Adriane. Really appreciate it! |
I am still not able to install spacy in Databricks with: |
For python 3.9 I'm not sure what's going on, we'd need more information about how you're installing spacy and what errors you're seeing. As a first step, you can run If that doesn't point to anything, can you share the exact install command you're using and |
Hi, I'm experiencing similar issues. My spacy environment worked flawlessly until I installed the dataframe_image package in the same envs. No I'm getting the same error: TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers' I've uninstalled the dataframe_image package, but the problem persists. |
In #12200 a user resolved the issue by uninstalling and then re-installing spaCy, have you tried that? If that doesn't fix it, please let us know the relevant versions of everything, like Python, spaCy, pydantic, etc. |
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. |
After latest pydantic-1.10.3 release, spacy no longer can be imported, raising a TypeError.
The root cause is an incompatibility between pydantic-1.10.3 and your requirement
typing_extensions>=3.7.4,<4.2.0; python_version < "3.8"
.See issue in pydantic:
See fixing PR in pydantic (
typing-extensions>=4.2.0
), which will be incompatible with your requirementtyping_extensions>=3.7.4,<4.2.0; python_version < "3.8"
:To reproduce the error:
pip install spacy python -c "import spacy"
raises:
Your Environment
The text was updated successfully, but these errors were encountered: