Problem to import and run Streamlit due to circular import

Hello,

After installed successfully the streamlit, when i write “streamlit hello”, it doesn’t work. And when i try to import Streamlit, i received the message below:

ImportError: cannot import name ‘get_logger’ from partially initialized module ‘streamlit.logger’ (most likely due to a circular import) (C:\Users\Gabriel.Levy\Anaconda3\lib\site-packages\streamlit\logger.py)

I’ve already uninstalled and reinstalled package, python and browsers for python and in all cases, it doesn’t work. I’ll be glad for a help to end this issue and work normally with Streamlit.

Hi @Gabriel_Levy, welcome to the Streamlit community!

Have you tried re-installing Streamlit in a virtual environment, so that you have a completely fresh starting point? I can’t imagine what would cause a circular import, but starting with a virtual environment would be a great start to the debugging.

Best,
Randy

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.