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

Can't start torchserve-dashboard #14

Open
Kavan72 opened this issue Nov 26, 2021 · 1 comment
Open

Can't start torchserve-dashboard #14

Kavan72 opened this issue Nov 26, 2021 · 1 comment

Comments

@Kavan72
Copy link

Kavan72 commented Nov 26, 2021

I'm getting this error while on the start

Traceback (most recent call last):
  File "/home/kavan/.local/bin/torchserve-dashboard", line 5, in <module>
    from torchserve_dashboard.cli import main
  File "/home/kavan/.local/lib/python3.8/site-packages/torchserve_dashboard/cli.py", line 2, in <module>
    import streamlit.cli
  File "/home/kavan/.local/lib/python3.8/site-packages/streamlit/__init__.py", line 49, in <module>
    from streamlit.proto.RootContainer_pb2 import RootContainer
  File "/home/kavan/.local/lib/python3.8/site-packages/streamlit/proto/RootContainer_pb2.py", line 22, in <module>
    create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

Btw thanks for this awesome lib.

@cceyda
Copy link
Owner

cceyda commented Nov 30, 2021

I vaguely remember running into this problem elsewhere, an update of streamlit to the newest version should do the trick. I have just released an updated version with latest streamlit & torchserve v0.5

Could you try the below:

pip3 uninstall streamlit
pip3 uninstall torchserve-dashboard
pip3 install torchserve-dashboard # should be v0.5.0
pip3 install httpx # for some reason this is not getting installed despite being in the requirements 

Thank you for your interest & let me know if this solves your problem 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants