pragmatic-streamlit/streamlit-file-browser

ImportError: cannot import name 'st_file_browser'

Opened this issue · 1 comments

Hi I was trying the following code

import streamlit as st
from streamlit_file_browser import st_file_browser

st.header('Default Options')
event = st_file_browser("example_artifacts", key='A')
st.write(event)

and got the following error:

ImportError: cannot import name 'st_file_browser' from partially initialized module 'streamlit_file_browser' (most likely due to a circular import)

Do you know what it could be? Thanks.

Hi I was trying the following code

import streamlit as st
from streamlit_file_browser import st_file_browser

st.header('Default Options')
event = st_file_browser("example_artifacts", key='A')
st.write(event)

and got the following error:

ImportError: cannot import name 'st_file_browser' from partially initialized module 'streamlit_file_browser' (most likely due to a circular import)

Do you know what it could be? Thanks.

Sorry, I cannot replicate this problem. Maybe, you can check if there are circular references in your environment, or provide more detailed code and context for me.