Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Error: st.experimental_rerun() deprecated #55

Open
qu-genesis opened this issue Aug 24, 2024 · 2 comments
Open

Attribute Error: st.experimental_rerun() deprecated #55

qu-genesis opened this issue Aug 24, 2024 · 2 comments

Comments

@qu-genesis
Copy link

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?

@thatbudakguy
Copy link

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.

@bbelescot
Copy link

I created this tiny PR to update the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants