Make sure you have a compatible version of protobuf. For Streamlit 1.16.0 that is protobuf<4,>=3.12.
protobuf<4,>=3.12