Error running script cache_on_button_press.py in Windows 10

If you go to “C:\programdata\anaconda3\lib\site-packages\streamlit” folder
you should be able to find the file script_runner.py instead of ScriptRunner.py
same thing for script_request_queue.py
That’s because they changed the naming for them since 0.69.2 if I remember correctly
To fix this, you simply need to change

raise st.ScriptRunner.StopException

to

raise st.script_runner.StopException

or even easier on newer versions

st.stop()