# Got an error while deploying 

**URL:** <https://discuss.streamlit.io/t/got-an-error-while-deploying/120802>\
**Category:** Deployment\
**Tags:** streamlit-cloud, discussion\
**Created:** [February 14, 2026, 9:37pm UTC](https://discuss.streamlit.io/t/got-an-error-while-deploying/120802 "2026-02-14T21:37:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ehsaan](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/ehsaan/32/58147_2.png) [@Ehsaan](https://discuss.streamlit.io/u/Ehsaan)\
**Post date:** [February 14, 2026, 9:37pm UTC](https://discuss.streamlit.io/t/got-an-error-while-deploying/120802/1 "2026-02-14T21:37:13Z")

</div>

ModuleNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app)

What is the meaning of this error?

Traceback:

File “/mount/src/credit-wise-loan-approval-system/app.py”, line 4, in   
from sklearn.linear\_model import LogisticRegression

---

<div class="post-metadata">

**Author:** ![AgentStreamy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/agentstreamy/32/75102_2.png) [@AgentStreamy](https://discuss.streamlit.io/u/AgentStreamy)\
**Post date:** [February 14, 2026, 9:37pm UTC](https://discuss.streamlit.io/t/got-an-error-while-deploying/120802/2 "2026-02-14T21:37:31Z")

</div>

Hey there, thanks for your question! This error means your Streamlit app tried to import sklearn (scikit-learn), but the library isn’t installed in your deployment environment. On Streamlit Community Cloud, this usually happens if scikit-learn isn’t listed in your requirements.txt file, or if the file is missing or misnamed (e.g., requirement.txt instead of requirements.txt). The error message is partially redacted for security, but the root cause is a missing dependency—scikit-learn.

To fix it, add scikit-learn to your requirements.txt file (not sklearn), save, commit, and push to your repo. Then redeploy or reboot your app. For more details and examples, check the official docs and FAQ: [ModuleNotFoundError No module named - Streamlit Docs](https://docs.streamlit.io/knowledge-base/dependencies/module-not-found-error), [App dependencies - Streamlit Docs](https://docs.streamlit.io/deploy/streamlit-community-cloud/deploy-your-app/app-dependencies#content-container), and [FAQ: ModuleNotFoundError](https://discuss.streamlit.io/t/faq-modulenotfounderror/62347).

Sources:

- [ModuleNotFoundError No module named - Streamlit Docs](https://docs.streamlit.io/knowledge-base/dependencies/module-not-found-error)
- [App dependencies - Streamlit Docs](https://docs.streamlit.io/deploy/streamlit-community-cloud/deploy-your-app/app-dependencies#content-container)
- [FAQ: ModuleNotFoundError](https://discuss.streamlit.io/t/faq-modulenotfounderror/62347)

---

<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:** [August 13, 2026, 9:38pm UTC](https://discuss.streamlit.io/t/got-an-error-while-deploying/120802/3 "2026-08-13T21:38:22Z")

</div>

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