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

TypeError: 'input' object is not iterable #554

Closed
yuchaofan13 opened this issue Aug 18, 2021 · 5 comments
Closed

TypeError: 'input' object is not iterable #554

yuchaofan13 opened this issue Aug 18, 2021 · 5 comments

Comments

@yuchaofan13
Copy link

I try to run 'dtale.show(df)' but get this error message. Any help would be appreciated.

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\dtale\app.py", line 708, in _start
app = build_app(
File "C:\ProgramData\Anaconda3\lib\site-packages\dtale\app.py", line 474, in build_app
app = dash_views.add_dash(app)
File "C:\ProgramData\Anaconda3\lib\site-packages\dtale\dash_application\views.py", line 131, in add_dash
init_callbacks(dash_app)
File "C:\ProgramData\Anaconda3\lib\site-packages\dtale\dash_application\views.py", line 345, in init_callbacks
@dash_app.callback(
File "C:\ProgramData\Anaconda3\lib\site-packages\dash\dash.py", line 950, in callback
self._validate_callback(output, inputs, state)
File "C:\ProgramData\Anaconda3\lib\site-packages\dash\dash.py", line 649, in _validate_callback
for i in inputs:
TypeError: 'Input' object is not iterable

@yuchaofan13
Copy link
Author

Forgot to mention I'm running jupyter notebook in VS code. It was working a few hours ago; the only change that happened in the interim I can think of is that I installed beautifulsoup and selenium.

@aschonfeld
Copy link
Collaborator

So, I wonder if dash has updated their API. When creating callbacks you used to be able to specify a single input or a list of inputs. Looks like based on your exception it now requires you to always specify a list of inputs. I'm running dash 1.20.0 and its working fine. That being said, I'm working on a new version of D-Tale which will always use a list of inputs. I'll let you know when the new version has been released, but in the meantime you can try downgrading your version of dash if its newer than 1.20.0.

Apologies for the issue

@yuchaofan13
Copy link
Author

Thanks a lot for the help, and also many thanks for developing dtale- I love it!

@aschonfeld
Copy link
Collaborator

@yuchaofan13 happy to hear it helps! If you havent already please toss your ⭐️ on the repo. Thanks 🙏

aschonfeld added a commit that referenced this issue Aug 27, 2021
@aschonfeld
Copy link
Collaborator

Fixed in v1.56.0

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