# Error related to using plotly

**URL:** <https://discuss.streamlit.io/t/error-related-to-using-plotly/56280>\
**Category:** Community Cloud\
**Created:** [November 27, 2023, 10:47pm UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280 "2023-11-27T22:47:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasserbadra](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/nasserbadra/32/35048_2.png) [@Nasserbadra](https://discuss.streamlit.io/u/Nasserbadra)\
**Post date:** [November 27, 2023, 10:47pm UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280/1 "2023-11-27T22:47:26Z")

</div>

Dear all,

I am new to streamlit and trying to delpoy my first app. The app perfectly works on python , however, when I try to deploy it , it return the following error :

```auto
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
    exec(code, module. __dict__ )
File "/mount/src/hello/App.py", line 2, in <module>
    import plotly.express as px

I am not sure if it is related to dependencies or how to fix it. 

Thank you 

```

---

<div class="post-metadata">

**Author:** ![Caroline](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/caroline/32/38736_2.png) [@Caroline](https://discuss.streamlit.io/u/Caroline)\
**Post date:** [November 27, 2023, 10:55pm UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280/2 "2023-11-27T22:55:21Z")

</div>

Hey @Nasserbadra,

Thanks for sharing your question. Please update your post to include the full error message and a link to your GitHub repo (it looks like you probably need to add `plotly` to your requirements file, although I can’t say for sure without looking at your code).

---

<div class="post-metadata">

**Author:** ![Nasserbadra](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/nasserbadra/32/35048_2.png) [@Nasserbadra](https://discuss.streamlit.io/u/Nasserbadra)\
**Post date:** [November 27, 2023, 11:11pm UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280/3 "2023-11-27T23:11:31Z")

</div>

Hey Caroline

Thank you for your reply

Following is the link to my github:

> **[GitHub - Nasserbadra/hello: hello](https://github.com/Nasserbadra/hello)**
>
> hello. Contribute to Nasserbadra/hello development by creating an account on GitHub.

Also , full error msg is as follows:

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).

Traceback:

```auto
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
    exec(code, module. __dict__ )File "/mount/src/hello/App.py", line 2, in <module>
    import plotly.express as

```

---

<div class="post-metadata">

**Author:** ![Caroline](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/caroline/32/38736_2.png) [@Caroline](https://discuss.streamlit.io/u/Caroline)\
**Post date:** [November 27, 2023, 11:13pm UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280/4 "2023-11-27T23:13:48Z")

</div>

It looks like you’re missing a `requirements.txt` file. Check out our docs which cover how to create one.

> **[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/streamlit-community-cloud/deploy-your-app/app-dependencies)**

---

<div class="post-metadata">

**Author:** ![Nasserbadra](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/nasserbadra/32/35048_2.png) [@Nasserbadra](https://discuss.streamlit.io/u/Nasserbadra)\
**Post date:** [November 28, 2023, 12:53am UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280/5 "2023-11-28T00:53:35Z")

</div>

Many thanks. Will read it carefully and revert if the need arise

---

<div class="post-metadata">

**Author:** ![Nasserbadra](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/nasserbadra/32/35048_2.png) [@Nasserbadra](https://discuss.streamlit.io/u/Nasserbadra)\
**Post date:** [November 28, 2023, 10:15pm UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280/6 "2023-11-28T22:15:40Z")

</div>

Hi again Caro

It worked well … thank you so much

---

<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:** [November 30, 2023, 10:16pm UTC](https://discuss.streamlit.io/t/error-related-to-using-plotly/56280/7 "2023-11-30T22:16:02Z")

</div>

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