Yes still have the issue even using 2.0.0 version ...
# ask-for-help
i
Yes still have the issue even using 2.0.0 version of Pydantic
Copy code
backend-1   | Traceback (most recent call last):
backend-1   |   File "/usr/local/bin/bentoml", line 5, in <module>
backend-1   |     from bentoml_cli.cli import cli
backend-1   |   File "/usr/local/lib/python3.8/site-packages/bentoml_cli/cli.py", line 59, in <module>
backend-1   |     cli = create_bentoml_cli()
backend-1   |   File "/usr/local/lib/python3.8/site-packages/bentoml_cli/cli.py", line 8, in create_bentoml_cli
backend-1   |     from bentoml._internal.configuration import BENTOML_VERSION
backend-1   |   File "/usr/local/lib/python3.8/site-packages/bentoml/__init__.py", line 210, in <module>
backend-1   |     import _bentoml_sdk
backend-1   |   File "/usr/local/lib/python3.8/site-packages/_bentoml_sdk/__init__.py", line 11, in <module>
backend-1   |     add_custom_preparers()
backend-1   |   File "/usr/local/lib/python3.8/site-packages/_bentoml_sdk/_pydantic.py", line 194, in add_custom_preparers
backend-1   |     *_std_types_schema.PREPARE_METHODS,
backend-1   | AttributeError: module 'pydantic._internal._std_types_schema' has no attribute 'PREPARE_METHODS'
🏁 1
c
@Frost Ming @Sean cc
f
You don’t seem to have upgraded to 1.3.4. @Illan Knafou
a
I’m seeing similar errors in the case I just reported here. I think there were some regressions with how subclasses of
BaseModel
are handled. Haven’t had a chance to do a deep dive into the issues, though, so I’m not sure what the root cause is.
f
@Adam Liter thanks, replied in the issue
👍 2
gratitude thank you 1