Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dash.exceptions.InvalidIndexException after upgrading Dash #641

Closed
sdx0112 opened this issue Mar 11, 2019 · 2 comments
Closed

dash.exceptions.InvalidIndexException after upgrading Dash #641

sdx0112 opened this issue Mar 11, 2019 · 2 comments

Comments

@sdx0112
Copy link

sdx0112 commented Mar 11, 2019

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.

@alexcjohnson
Copy link
Collaborator

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%}.

@alexcjohnson
Copy link
Collaborator

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants