-
Notifications
You must be signed in to change notification settings - Fork 588
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
spacy_nlp_engine: missing spacy.cli #1487
Comments
Thanks, this is a change in behavior that the spaCy team quickly reverted: |
As far as I know, this issue happens only in version 3.7.0, so 3.6.9 and 3.7.1 should still work. |
You are right. So maybe disallowing spacy 3.7.0 in the project.toml should be good enough? |
Yes. Would you be interested in creating a PR? |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In spacy_nlp_engine.py, it only imports spacy but calls
spacy.cli.download
:presidio/presidio-analyzer/presidio_analyzer/nlp_engine/spacy_nlp_engine.py
Line 64 in a21a17c
This will throw the following exception for spacy <= 3.7.0
Spacy 3.7.1 has
spacy.cli
imported when you import spacy only. So either fixed the code to explicitly import spacy.cli, or update the dependency requirement to depend on spacy>=3.7.1To Reproduce
Steps to reproduce the behavior:
create_engine
that triggers this pathExpected behavior
Should not throw this exception
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: