Skip to content

ModuleNotFoundError: No module named 'streamlit.script_run_context' (backward compatibility issue in 1.8.0) #4562

@ahtokca

Description

@ahtokca

Summary

After upgrading to 1.8.0 I got ModuleNotFoundError: No module named 'streamlit.script_run_context'
the module streamlit.script_run_context is renamed to streamlit.scriptrunner.
The change is not marked as 'breaking change', migration path is missing

Steps to reproduce

Code snippet:

from streamlit.script_run_context import get_script_run_ctx

Expected behavior:

Semantic versioning major part is used for breaking changes. Migration path provided.

Actual behavior:

breaking changes are not disclosed.

Is this a regression?

yes

Debug info

  • Streamlit version: 1.8.0
  • Python version: 3.9
  • Using PipEnv

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions