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

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/", line 75, in <module>
    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
  File "/home/jared/.local/lib/python3.8/site-packages/streamlit/", line 25, in <module>
    from streamlit.proto import Block_pb2
  File "/home/jared/.local/lib/python3.8/site-packages/streamlit/proto/", line 21, in <module>
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.


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