question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The api of streamlit.script_run_context api has changed

See original GitHub issue

https://github.com/TangleSpace/hydralit/blob/ecaec562aedc3854c2dbae9be76e9a679da228b9/hydralit/sessionstate.py#L8

at streamlit‘s latest version,it use scriptrunner package:

from streamlit.scriptrunner import get_script_run_ctx

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TangleSpacecommented, Mar 30, 2022

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.

#v1.7.0 from streamlit.script_run_context import get_script_run_ctx to

#v1.8.0 from streamlit.scriptrunner.script_run_context import get_script_run_ctx

0reactions
TangleSpacecommented, Jun 22, 2022

New version 1.0.13 release now supports Streamlit >=1.9, until Streamlit decide to change more shit and break Hydralit again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Streamlit.script_run_context() gone with 1.8?
With latest version 1.8 it changed again: ... I have the same problem, it breaks this code here: ... But version 1.12 changed...
Read more >
Improve "missing ReportContext" threading error #1326 - GitHub
And I found that they have changed the module name and function name, ... Streamlit API and therefore unsupported and subject to change....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found