pragmatic-streamlit / streamlit-file-browser

Streamlit file browser
88 stars 13 forks source link

ImportError: cannot import name 'st_file_browser' #40

Open dnnxl opened 3 weeks ago

dnnxl commented 3 weeks ago

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.

y805939188 commented 3 weeks ago

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.