I just upgraded to 0.39 (from 0.38rc1) and I’m getting an exception when the site tries to load:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.7/site-packages/dash/dash.py", line 570, in index
pl=plural
dash.exceptions.InvalidIndexException: Missing element new DashRenderer in index.
Figured out the issue, in case others run into it as well:
Looks like the default app_index string was modified to now include {%renderer%} in the section. Since I was manually setting the index string in my application, the change in the default string was not reflected in my overridden index string therefore causing the exception of “Missing element”.
Is app.index_string necessary to add a favicon? I’m including a favicon.ico in my assets folder at root, but nothing is showing up in my web browser tab, although the default plotly icon is removed.
No doubt you’ve already figured it out by now - sorry for taking so long to see this. But for me, our favicons disappeared at some point when we moved to a new version of Dash. To fix it, we ended up with what’s shown below. I’m afraid I can’t remember many more details about it anymore. The below works with dash v39 (excuse some of my application specific code included in the snippet below):