torchserve-dashboard
torchserve-dashboard copied to clipboard
Can't start torchserve-dashboard
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.
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 😄