Dash application running in Azure Kubernetes Cluster from last 3 months and suddenly today I get the following error:
Traceback (most recent call last):
File “./ui_service/app.py”, line 6, in
from ui_service import views
File “./ui_service/views.py”, line 26, in
File “/venv/lib/python3.6/site-packages/dash/dash.py”, line 399, in init
caller_name = get_caller_name(self.class.name)
File “/venv/lib/python3.6/site-packages/dash/_utils.py”, line 290, in get_caller_name
for code in s.code_context:
TypeError: ‘NoneType’ object is not iterable
This error is from a change in latest release of dash. For now, try pinning the dash version to 2.13.0. More info coming soon.
Sorry about that @saikrishna - yes for now you can pin
dash==2.13.0. We’re working on finding a more robust way to handle this for all the cases we missed when developing this feature (see Fix get_caller_name by T4rk1n · Pull Request #2672 · plotly/dash · GitHub) and we’ll circle back when we have a patch published.
dash==2.14.1 should fix this for you - not only do we use a more robust mechanism to find the calling frame, but if you provide a name (ie
app = Dash(__name__) we won’t even call this code anymore. Sorry for the inconvenience!
yes it resolved the issue, thank you.
Sure @alexcjohnson , thank you.