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)
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