spacy-streamlit icon indicating copy to clipboard operation
spacy-streamlit copied to clipboard

Attribute Error: st.experimental_rerun() deprecated

Open qu-genesis opened this issue 1 year ago • 2 comments

Hi, I'm running the visualize_app.py demo in the repo README, but I'm running into the following error.

File "/Users/qugenes/miniconda3/lib/python3.11/site-packages/spacy_streamlit/visualizer.py", line 51, in visualize st.experimental_rerun() ^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'streamlit' has no attribute 'experimental_rerun'

After looking through some other online issues, I saw this thread that said that st.experimental_rerun() is an attribute of an older version of streamlit and I'm running on streamlit version == 1.37.1

Is this a problem with the spacy-streamlit codebase? Should the visualizer.py be updated? Or how should I address this problem?

qu-genesis avatar Aug 24 '24 12:08 qu-genesis

Rolling back to streamlit==1.36.0 resolved this for me. I think this package needs to be updated to use .rerun(), since experimental_rerun() is gone now.

thatbudakguy avatar Oct 15 '24 17:10 thatbudakguy

I created this tiny PR to update the code

bbelescot avatar Nov 04 '24 16:11 bbelescot