[Streamlit 1.16] Error when running app with local tunnel (possibly related to incorrect protobuf version)

Hello all,

Apologies if this has been reported already.

When using Streamlit 1.16, my app would not spin up when using a local tunnel. This was also reported here on SO and here in Deepnote’s community.

Here is the error:
ImportError: cannot import name 'builder' from 'google.protobuf.internal'

It can be overcome by installing to these versions of protobuf and Streamlit:
protobuf==3.19 streamlit==1.13

I am reporting it here in case it can be fixed (e.g., specifying the correct version of protobuf).

1 Like

Hi @AlCampopiano,

Thank you for sharing this! I’d recommend opening a GitHub Issue here so our product and engineering teams can take a look.

Upgrade protobuf