PaleNeutron / streamlit-ext

Streamlit widgets synce value with url ,download button which won't cause rerun and some useful functions
Apache License 2.0
35 stars 2 forks source link

AttributeError: module 'streamlit.runtime.state.widgets' has no attribute '_get_widget_id' #6

Closed alicjagrocholska closed 1 year ago

alicjagrocholska commented 1 year ago

Hello, this error started to happen with the scripts that import streamlit_ext today, when I updated to streamlit 1.19.0. For now I will downgrade streamlit to the version;)

AttributeError: module 'streamlit.runtime.state.widgets' has no attribute '_get_widget_id'
Traceback:
File "C:\Users\Me\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "C:\Users\Me\Downloads\Emails\glovo\pages\1_Credentials_Storage.py", line 4, in <module>
    import streamlit_ext as ste
File "C:\Users\Me\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit_ext\__init__.py", line 1, in <module>
    from .container import DummySidebar
File "C:\Users\Me\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit_ext\container.py", line 6, in <module>
    from . import paramed_element
File "C:\Users\Me\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit_ext\paramed_element.py", line 17, in <module>
    super_get_widget_id = stw._get_widget_id
PaleNeutron commented 1 year ago

Thanks for reporting, fixed in version 0.1.6.