Skip to content

cannot import name 'ModelMetaclass' from 'pydantic.main' #13350

Closed Answered by svlandeg
maspotts asked this question in Help: Other Questions
Discussion options

You must be logged in to vote

Thanks for those detailed logs! That's helpful.

First - definitely don't install spacy 4.0.0.devX yet - it's not ready ;-)

When you install spaCy 3.7.4, somehow your environment is not installing the latest confection:

confection 0.0.4 requires pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4, but you have pydantic 2.6.1 which is incompatible.

The latest is 0.1.4 and has compatibility for Pydantic v2 (since 0.1.1). Try upgrading that (and probably also Thinc)?

Replies: 9 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by maspotts
Comment options

You must be logged in to vote
2 replies
@svlandeg
Comment options

@maspotts
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party Third-party packages and services compat Cross-platform and cross-Python compatibility
2 participants