dash.exceptions.InvalidIndexException after upgrading Dash

Created on 11 Mar 2019  路  2Comments  路  Source: plotly/dash

I have build an app which was running smoothly in Dash-0.28.5. After I upgraded Dash from 0.28.5 to 0.39.0, I encounter the error by running the same App.

File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\dongxushao\AppData\Local\Continuum\anaconda3\lib\site-packages\dash\dash.py", line 570, in index
pl=plural
dash.exceptions.InvalidIndexException: Missing element new DashRenderer in index.

Most helpful comment

Hi @sdx0112 - This is due to the new custom hooks functionality #367 - see https://dash.plot.ly/external-resources, specifically the section "Customizing Dash's HTML Index Template" for usage details. If you've made your own app.index_string, you need to include {%renderer%} now, somewhere after {%scripts%}.

All 2 comments

Hi @sdx0112 - This is due to the new custom hooks functionality #367 - see https://dash.plot.ly/external-resources, specifically the section "Customizing Dash's HTML Index Template" for usage details. If you've made your own app.index_string, you need to include {%renderer%} now, somewhere after {%scripts%}.

I assume this is resolved? If not, feel free to open a new issue, or perhaps even better would be discussing this at https://community.plot.ly/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jerry-Ma picture Jerry-Ma  路  3Comments

Ricardo-C-Oliveira picture Ricardo-C-Oliveira  路  4Comments

lochbrunner picture lochbrunner  路  3Comments

r-chris picture r-chris  路  3Comments

mpkuse picture mpkuse  路  4Comments