Error when typing streamlit

Hi All,

Below is the output of me typing just the command: streamlit

I have tried both in and out of virtual environments, reinstalled streamlit etc. Any help would be appreciated. Thank you.

I am running ubuntu

streamlit
Traceback (most recent call last):
  File "/home/jared/.local/bin/streamlit", line 5, in <module>
    from streamlit.cli import main
  File "/home/jared/.local/lib/python3.8/site-packages/streamlit/__init__.py", line 75, in <module>
    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
  File "/home/jared/.local/lib/python3.8/site-packages/streamlit/delta_generator.py", line 25, in <module>
    from streamlit.proto import Block_pb2
  File "/home/jared/.local/lib/python3.8/site-packages/streamlit/proto/Block_pb2.py", line 21, in <module>
    create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

Hi @jareda, welcome to the Streamlit community!

This error occurs because the protobuf library needs to be updated:

I’ll work on getting this into our documentation to make it easier for people to find when they search.

Best,
Randy

1 Like

Hi Randy,

Thank you, I could have sworn I updated protobuf, but I must not have. That fixed the issue. Thank you.

1 Like

i get the same error even after updating protobuf(3.17.2)