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

bug: KeyError: 'name' #4500

Open
sunnysavita10 opened this issue Feb 12, 2024 · 2 comments
Open

bug: KeyError: 'name' #4500

sunnysavita10 opened this issue Feb 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sunnysavita10
Copy link

Describe the bug

image

i was getting the keyerror while i was running the code
bentoml version.
bentoml==1.0.25
bentoml==1.0.10

with the latest version also
pip install bentoml==1.2.2

here i have tested with the python==3.8, 3.9,3,10

To reproduce

none

Expected behavior

none

Environment

none

@sunnysavita10 sunnysavita10 added the bug Something isn't working label Feb 12, 2024
@frostming
Copy link
Contributor

What code you were running and what command you were invoking?

@MikeOMa
Copy link

MikeOMa commented Feb 28, 2024

Hey,

I had a similar issue.

I think there was a bentoml version that wrote an invalid bento.yaml file to /Users/name/bentoml/bentos/project_name (1.0.2 is my guess but not sure).

Then even if I updated my python bentoml version it would try to parse the broken file created by the old bentoml version.

To fix: just delete the bentos folder above if theres nothing important in it.

To reproduce: Go to that folder, break a bento.yaml file in the latest bento by deleting name and version.
Then try to run bentoml build in the main project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants