🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Confused problem

when i bind dash_core_component.Input with dependencies.Input.
it will always show a IndexError.

Traceback (most recent call last):
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 2309, in call
return self.wsgi_app(environ, start_response)
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 2295, in wsgi_app
response = self.handle_exception(e)
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File “rootfolder\venv\lib\site-packages\flask_compat.py”, line 35, in reraise
raise value
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 2292, in wsgi_app
response = self.full_dispatch_request()
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “rootfolder\venv\lib\site-packages\flask_compat.py”, line 35, in reraise
raise value
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 1813, in full_dispatch_request
rv = self.dispatch_request()
File “rootfolder\venv\lib\site-packages\flask\app.py”, line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File “rootfolder\venv\lib\site-packages\dash\dash.py”, line 958, in dispatch
][0])
IndexError: list index out of range

Is there someone face the same problem?

Can you provide an actual code example that produces this error? It would also be useful to know what versions of the libraries you are using.

Thanks for your response.
I found it may relate to my VPN, I can’t recurrent it right now.

Versions:

dash.version
‘0.35.2’

dash_core_components.version
‘0.42.1’

dash_html_components.version
‘0.13.5’

Code:
@app.callback(Output(‘graph-component’, ‘figure’), [Input(‘button’, ‘n_clicks’), Input(‘input-component’, ‘value’)
def plotfigure(btnclicks, inputvalue):
.
.
.
# Plot the figure with input component value
return figure