question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Regression][Conda] ModuleNotFoundError: No module named 'streamlit.cli'

See original GitHub issue

Conda: 4.14.0 Python: 3.9.13

After upgrading to versions 1.12.0 and 1.12.2, Streamlit no longer launches.

streamlit run _gui_streamlit.py

Traceback (most recent call last):
  File "/home/platon/miniconda3/bin/streamlit", line 6, in <module>
    from streamlit.cli import main
ModuleNotFoundError: No module named 'streamlit.cli'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
vdonatocommented, Aug 30, 2022

Hey @PlatonB,

Thanks for reporting this. This issue was caused by the conda-forge distribution of Streamlit not being supported in the same official capacity as our PyPI distribution (it’s technically community supported), so we didn’t catch that a refactor of some of the streamlit internals broke the conda-forge distribution. I have a PR out to fix it (https://github.com/conda-forge/streamlit-feedstock/pull/57) and hope to get it checked-in in the next day or so.

Note that we’re currently working with the anaconda team to get streamlit into the conda default channel (version 1.11.1 is in conda defaults, but we still need to work out getting new versions into conda defaults as they’re released to PyPI), so once that’s done we’ll have more guarantees around the stability of conda release of Streamlit.

(CC @kmcgrady)

1reaction
amaiyacommented, Aug 28, 2022

It was moved to streamlit.web.cli.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'streamlit.cli'
I have created an environment, and I check my "requirements.txt" file, I lack the package "networkx", when I install finished and deploy again, ......
Read more >
ModuleNotFoundError No module named - Streamlit Docs
This error occurs when you import a module on Streamlit Cloud that isn't included in your requirements file. Any external Python dependencies that...
Read more >
No module named 'streamlit.report_thread'
I'm trying to deploy an object detection web app on streamlit cloud but it's throwing me this error.
Read more >
'streamlit' is a package and cannot be directly executed
Hello guys, When i try to deploy streamlit to heroku i get this below error.How can i fix it? No module named streamlit.main;...
Read more >
ModuleNotFoundError - Using Streamlit
ModuleNotFoundError : No module named 'networkx' File “/usr/local/lib/python3.7/site-packages/streamlit/ScriptRunner.py”, line 311, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found