joy13975/streamlit-nested-layout

error for streamlit 1.34.0

Closed this issue · 2 comments

TypeError: 'function' object is not iterable
Traceback:
File "D:\software\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "D:\all\notebook\GitProject\streamlit\test\app.py", line 31, in
vote("A")
File "D:\software\anaconda3\lib\site-packages\streamlit\elements\dialog_decorator.py", line 64, in wrap
dialog = event_dg._dialog(title=title, dismissible=True, width=width)
File "D:\software\anaconda3\lib\site-packages\streamlit\elements\layouts.py", line 742, in _dialog
return Dialog._create(self.dg, title, dismissible=dismissible, width=width)
File "D:\software\anaconda3\lib\site-packages\streamlit\elements\lib\dialog.py", line 89, in _create
dialog = cast(Dialog, parent._block(block_proto=block_proto, dg_type=Dialog))
File "D:\software\anaconda3\lib\site-packages\streamlit_nested_layout\nest.py", line 21, in _nestable_block
parent_block_types = list(dg._parent_block_types)

@LixiangHello what version of streamlit-nested-layout are you using? The latest version with streamlit 1.34.0 does not reproduce this error.

Thanks, upgrading to version streamlit-nested-layout==0.1.3 solves this problem.