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

Error with pydantic 2.9.x #221

Closed
rmarquis opened this issue Oct 1, 2024 · 1 comment · Fixed by #222
Closed

Error with pydantic 2.9.x #221

rmarquis opened this issue Oct 1, 2024 · 1 comment · Fixed by #222
Assignees

Comments

@rmarquis
Copy link
Contributor

rmarquis commented Oct 1, 2024

Error in chapter 11:

AttributeError: module 'pydantic._internal._std_types_schema' has no attribute 'PREPARE_METHODS'

This happens due to the update of the pydantic transitive dependency, which happened on September 5.
Indeed, we don't have full control of transitive dependency in the guide, as we teach how to freeze dependencies to avoid unwanted breakage.

However, we don't have guarantees that the guide itself will be in a full working state, as shown above.

A quick sorkaround is to pin pydantic to 2.8.2, as shown in bentoml/BentoML#4974. A more long term solution is to use bentoml.IODescriptor as shown in bentoml/BentoML#4975

A more general question arises: how do we ensure the ocntent of the guide stays in a full working state, without pre-doing the steps the readers are supposed to do?

@rmarquis
Copy link
Contributor Author

rmarquis commented Oct 1, 2024

The error hes been fixed in BentoML 2.3.6 through bentoml/BentoML#4960

We'll handle the more general question in a separate ticket.

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 a pull request may close this issue.

1 participant