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

feature: add traceback to service import error #2966

Closed
smidm opened this issue Sep 2, 2022 · 2 comments · Fixed by #2982
Closed

feature: add traceback to service import error #2966

smidm opened this issue Sep 2, 2022 · 2 comments · Fixed by #2982
Assignees
Labels
feature Feature requests or pull request implementing a new feature

Comments

@smidm
Copy link
Contributor

smidm commented Sep 2, 2022

Feature request

when bentoml serve <bento> --debug fails on bento import the error message is not helpful:

Error: [bentoml-cli] `serve` failed: Failed to load bento or import service ' <bento> '. 
If you are attempting to import bento in local store: `Failed to import module "pose": No module named 'pose'`, 
or if you are importing by python module path: 
`Failed to import module "service": libcudart.so.11.0: cannot open shared object file: No such file or directory`

It should show the ImportError traceback, at least in --debug mode.

I had to resort to:

cd ~/bentoml/bentos/pose/n7ptgfrkuontoatv/src/
python -c 'import service'

Motivation

easier debugging import errors while serving bentos

Other

No response

@ssheng
Copy link
Collaborator

ssheng commented Sep 8, 2022

@smidm Thanks for reporting this issue. We will look to address it in the next release.

@ssheng ssheng added the feature Feature requests or pull request implementing a new feature label Sep 8, 2022
@aarnphm
Copy link
Member

aarnphm commented Sep 13, 2022

@smidm Thanks for reporting once again, and this will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature requests or pull request implementing a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants