Skip to content

dash.exceptions.InvalidIndexException after upgrading Dash #641

Closed

Description

@sdx0112

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.

Activity

  1. alexcjohnson commented on Mar 11, 2019

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

  2. alexcjohnson commented on Mar 18, 2019

    @alexcjohnson
    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/

  3. added a commit that references this issue on May 28, 2021
  4. added a commit that references this issue on Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions