Closed cgx9 closed 2 years ago
(unity) fred@Freds-MacBook-Pro:~/bin/nimble/unity$ /Users/fred/.virtualenvs/unity/bin/python /Users/fred/bin/nimble/unity/app/utilities/LeoBloom/LeoBloom.py
Traceback (most recent call last):
File "/Users/fred/bin/nimble/unity/app/utilities/LeoBloom/LeoBloom.py", line 4, in
am I missing something? Even from streamlit.scriptrunner import get_script_run_ctx
does not work for me
it's because Streamlit keep changing this method name over and over and over, people want to keep installing the latest version of Streamlit and hence why all these community packages keep breaking and why i wait so long until i push the fix, as there are now 4 branch conditions required in the code to correctly account for all the variations in the method name to get the session context.
from streamlit.script_run_context import get_script_run_ctx to
from streamlit.scriptrunner.script_run_context import get_script_run_ctx
in my case I just needed to reload VSCode as I had reinstalled the newer version of streamlit locally but forgot to restart. Woopsie. Someone accidentally regenerated the pipfile in our repo and we hadn't forced a version so we inadvertently ended up on 1.8.1 without any warning. Lot of dashboards need rewriting now haha. We were on such an old version our code still has beta_columns in it.
New version 1.0.13 release now supports Streamlit >=1.9, until Streamlit decide to change more shit and break Hydralit again.
https://github.com/TangleSpace/hydralit/blob/ecaec562aedc3854c2dbae9be76e9a679da228b9/hydralit/sessionstate.py#L8
at streamlit‘s latest version,it use scriptrunner package: