You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run my application, I receive following error :
Traceback (most recent call last):
File "app.py", line 452, in
@app.callback(
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\dash\dash.py", line 1264, in callback
self._validate_callback(output, inputs, state)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\dash\dash.py", line 921, in _validate_callback
if arg_id not in layout and arg_id != layout_id:
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\dash\development\base_component.py", line 257, in iter
for t in self._traverse():
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\dash\development\base_component.py", line 217, in _traverse
for t in self._traverse_with_paths():
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\dash\development\base_component.py", line 252, in _traverse_with_paths
for p, t in i._traverse_with_paths():
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\dash\development\base_component.py", line 244, in _traverse_with_paths
"(id={:s})".format(i.id) TypeError: unsupported format string passed to Button.format
The error appear on a line where I define this callback :
The error seems to be about naming of one of my button.
The weird thing is, if I remove this callback, no error.
I must be doing something wrong in this callback but I cannot see what, and the error is not helpful...
The text was updated successfully, but these errors were encountered:
I suspect somewhere in your layout you have a set of children that should be wrapped in an array and the second one is a Button - ie html.Div(Something(...), Button(...), ...)
should be html.Div([Something(...), Button(...), ...])
(isn't necessarily a Div but you get the point)
This is only showing up during callback definition because that's the first place we walk the layout tree.
I'm starting to think a v2 component API should only accept arrays for children... otherwise it's super tricky for us to figure out how to give a more helpful error for this case.
Context
Bug description
When I run my application, I receive following error :
The error appear on a line where I define this callback :
The error seems to be about naming of one of my button.
The weird thing is, if I remove this callback, no error.
I must be doing something wrong in this callback but I cannot see what, and the error is not helpful...
The text was updated successfully, but these errors were encountered: