Skip to content
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

[DH-384] moving the pydantic package def below otter-grader fixes import spacy #8

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

shaneknapp
Copy link
Contributor

see also:
explosion/spaCy#12669
explosion/spaCy#12659

ordering the imports this way means that the version of pydantic that is installed (<2.X) doesn't break spacy.

from looking at pipdeptree when spacy wasn't working, it looks like otter-grader was pulling in v2.10.X of pydantic.

@sean-morris any insights in to what otter-grader needs in this context? i was able to execute the otter binary on my local build w/o any errors, but you're most definitely the experten here.

@shaneknapp
Copy link
Contributor Author

after checking out the otter-grader source, it looks like that if we need to update from 4.4.1 to 6.X+ we won't be able to use spacy as otter-grader required v2.9+ of pydantic: https://github.com/ucbds-infra/otter-grader/blob/master/poetry.lock#L2615

@shaneknapp shaneknapp changed the title [DH-384] moving the pydantic import below otter-grader fixes import spacy [DH-384] moving the pydantic package def below otter-grader fixes import spacy Nov 6, 2024
@shaneknapp shaneknapp merged commit c8ba144 into berkeley-dsep-infra:main Nov 6, 2024
2 checks passed
@shaneknapp shaneknapp deleted the fix-spacy-redux branch November 6, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant