Search code examples
pythonpython-3.xstreamlit

Streamlit - Protocols cannot be instantiated


I tried running a simple

import streamlit as st

st.write('Hello World')

It returns a TypeError: Protocols cannot be instantiated. Found a similar post mentioning installing a prior version, which resulted in the same error. The local app does launch, but sits on "Please wait..." screen.


Solution

  • I updated my python version to 3.10, which solved the issue. Apparently 3.9.7 causes this issue.