Hey everyone, I’m tryin to migrate a project from python 3.7 to python 3.12 on my local Windows machine.
AttributeError: module ‘streamlit’ has no attribute ‘get_report_ctx’
Traceback (most recent call last):
File “C:..”
exec(code, module.dict)
File “C:..”
session_state = get(username=“”, password=“”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:..”
ctx = ReportThread.get_report_ctx()
Earlier I was using below package versions:
python==3.7
streamlit=1.3.0
streamlit-aggrid<1.0.0
Now, I’m using below package versions :
python 3.9
streamlit=1.29.0
streamlit-aggrid=1.0.2
I have tried to import using :
from streamlit.scriptrunner import get_script_run_ctx as get_report_ctx
Error : ModuleNotFoundError: No module named ‘streamlit.scriptrunner’
But it is still not working. Need some help.