Skip to content

AttributeError: module 'streamlit.components.v1' has no attribute 'components' #275

@WaldekGizynski

Description

@WaldekGizynski

I use Aggrid on the site along with st.tabs. After upgrading streamlit to 1.34, an error started to occur.
When the page uses st.tabs and there is a table on one of the tabs and a st.form with st.file_uploader which I reload several times, then I get this error:

selection = AgGrid(
File "C:\Users...\lib\site-packages\st_aggrid_init_.py", line 396, in AgGrid
except components.components.MarshallComponentException as ex:
AttributeError: module 'streamlit.components.v1' has no attribute 'components'

I can't figure out what needs to be met for the error to be easily reproduced. However, I know that the error started to appear since the streamlit upgrade.
The error occurs for aggrid 0.3.5 and 1.0.5 for streamlit 1.34, also 1.35.
I found a somewhat related topic regarding streamlit changes here: streamlit/streamlit#8644
I checked streamlit 1.32 and actually the error does not occur.
Maybe based on this, it will be possible to determine what is the cause and solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions