bentoml / BentoML

The easiest way to serve AI apps and models - Build Model Inference APIs, Job queues, LLM apps, Multi-model pipelines, and more!
https://bentoml.com
Apache License 2.0
7.15k stars 791 forks source link

bug: https://github.com/encode/starlette update new 0.25.0 version when docker build #3563

Closed litter-rabbit closed 1 year ago

litter-rabbit commented 1 year ago

Describe the bug

Traceback (most recent call last): File "/usr/local/bin/bentoml", line 5, in from bentoml_cli.cli import cli File "/usr/local/lib/python3.9/dist-packages/bentoml_cli/cli.py", line 6, in from bentoml import version as BENTOML_VERSION File "/usr/local/lib/python3.9/dist-packages/bentoml/init.py", line 42, in from ._internal.service import Service File "/usr/local/lib/python3.9/dist-packages/bentoml/_internal/service/init.py", line 1, in from .loader import load File "/usr/local/lib/python3.9/dist-packages/bentoml/_internal/service/loader.py", line 16, in from .service import on_import_svc File "/usr/local/lib/python3.9/dist-packages/bentoml/_internal/service/service.py", line 15, in from .inference_api import InferenceAPI File "/usr/local/lib/python3.9/dist-packages/bentoml/_internal/service/inference_api.py", line 13, in from ..io_descriptors import IODescriptor File "/usr/local/lib/python3.9/dist-packages/bentoml/_internal/io_descriptors/init.py", line 9, in from .multipart import Multipart File "/usr/local/lib/python3.9/dist-packages/bentoml/_internal/io_descriptors/multipart.py", line 14, in from ..utils.formparser import populate_multipart_requests File "/usr/local/lib/python3.9/dist-packages/bentoml/_internal/utils/formparser.py", line 11, in from starlette.formparsers import MultiPartMessage ImportError: cannot import name 'MultiPartMessage' from 'starlette.formparsers' (/usr/local/lib/python3.9/dist-packages/starlette/formparsers.py)

To reproduce

No response

Expected behavior

No response

Environment

bentoml

MathiasGruber commented 1 year ago

Same as https://github.com/bentoml/BentoML/issues/3562

aarnphm commented 1 year ago

Hi All. We just release 1.0.15 which includes the patch fix for this issue. Please update the latest version of bentoml

pip install -U bentoml>=1.0.15