You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was doing a bentoml build and I am getting the error
Traceback (most recent call last):
File "~/usr/vendors/pyenv/versions/housing_valuation/bin/bentoml", line 8, in <module>
sys.exit(cli())
^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/click/core.py", line 1157, in __call__returnself.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv =self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/click/core.py", line 1688, in invokereturn _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/click/core.py", line 1434, in invokereturn ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/click/core.py", line 783, in invokereturn __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml_cli/utils.py", line 362, in wrapperreturn func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml_cli/utils.py", line 333, in wrapper
return_value = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/click/decorators.py", line 33, in new_funcreturn f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml_cli/utils.py", line 290, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/click/decorators.py", line 33, in new_funcreturn f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/simple_di/__init__.py", line 139, in _return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml_cli/bentos.py", line 371, in build
).save(_bento_store)
^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/simple_di/__init__.py", line 139, in _return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml/_internal/bento/bento.py", line 390, in savewith bento_store.register(self.tag) as bento_path:
File "~/usr/vendors/pyenv/versions/3.11.4/lib/python3.11/contextlib.py", line 144, in __exit__next(self.gen)
File ~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml/_internal/store.py", line 177, in register
orself.get(_tag).creation_time >=self.get(_tag.name).creation_time
^^^^^^^^^^^^^^
File "/~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml/_internal/store.py", line 141, in getreturnself._get_item(_tag)
^^^^^^^^^^^^^^^^^^^^
File ~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml/_internal/store.py", line 102, in _get_item
returnself._item_type.from_fs(self._fs.opendir(tag.path()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml/_internal/bento/bento.py", line 307, in from_fs
info = BentoInfo.from_yaml_file(bento_yaml)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/usr/vendors/pyenv/versions/3.11.4/envs/housing_valuation/lib/python3.11/site-packages/bentoml/_internal/bento/bento.py", line 539, in from_yaml_file
yaml_content["tag"] = Tag(yaml_content["name"], yaml_content["version"])
~~~~~~~~~~~~^^^^^^^^KeyError: 'name'
This error should be catched instead of failing the build. My yaml content look like this
Describe the bug
I was doing a bentoml build and I am getting the error
This error should be catched instead of failing the build. My yaml content look like this
To reproduce
No response
Expected behavior
No response
Environment
bentoml: 1.1.1
python 3.11.4
The text was updated successfully, but these errors were encountered: