# Problem to import and run Streamlit due to circular import

**URL:** <https://discuss.streamlit.io/t/problem-to-import-and-run-streamlit-due-to-circular-import/26178>\
**Category:** Using Streamlit\
**Tags:** windows\
**Created:** [June 7, 2022, 9:42am UTC](https://discuss.streamlit.io/t/problem-to-import-and-run-streamlit-due-to-circular-import/26178 "2022-06-07T09:42:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Levy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/gabriel_levy/32/13086_2.png) [@Gabriel\_Levy](https://discuss.streamlit.io/u/Gabriel_Levy)\
**Post date:** [June 7, 2022, 9:42am UTC](https://discuss.streamlit.io/t/problem-to-import-and-run-streamlit-due-to-circular-import/26178/1 "2022-06-07T09:42:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [June 8, 2022, 1:47pm UTC](https://discuss.streamlit.io/t/problem-to-import-and-run-streamlit-due-to-circular-import/26178/2 "2022-06-08T13:47:40Z")

</div>

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.

> **[Installation - Streamlit Docs](https://docs.streamlit.io/library/get-started/installation#install-streamlit-on-windows)**

Best,  
Randy

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [June 8, 2023, 1:48pm UTC](https://discuss.streamlit.io/t/problem-to-import-and-run-streamlit-due-to-circular-import/26178/3 "2023-06-08T13:48:18Z")

</div>

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