# Deploy error

**URL:** <https://discuss.streamlit.io/t/deploy-error/49341>\
**Category:** Community Cloud\
**Created:** [August 15, 2023, 7:44am UTC](https://discuss.streamlit.io/t/deploy-error/49341 "2023-08-15T07:44:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkakde](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/gkakde/32/30709_2.png) [@gkakde](https://discuss.streamlit.io/u/gkakde)\
**Post date:** [August 15, 2023, 7:44am UTC](https://discuss.streamlit.io/t/deploy-error/49341/1 "2023-08-15T07:44:18Z")

</div>

I get the following error while deploying my app

ERROR: Could not find a version that satisfies the requirement matplotlib.pyplot (from versions: none)  
ERROR: No matching distribution found for matplotlib.pyplot

app [https://oidatav2-gnan.streamlit.app/](https://oidatav2-gnan.streamlit.app/)

Kindly guide

---

<div class="post-metadata">

**Author:** ![Charly\_Wargnier](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/charly_wargnier/32/1504_2.png) [@Charly\_Wargnier](https://discuss.streamlit.io/u/Charly_Wargnier)\
**Post date:** [August 15, 2023, 8:15am UTC](https://discuss.streamlit.io/t/deploy-error/49341/2 "2023-08-15T08:15:34Z")

</div>

Hi @gkakde,

Would it be possible to get a link to the repo, please?

Just to clarify, when you specify dependencies in your `requirements.txt` file, you should specify the package name, not a specific module within the package. In this case, you should be specifying `matplotlib`, not `matplotlib.pyplot`.

Your `requirements.txt` file should look like:

```plaintext
matplotlib
... (other dependencies)

```

You may want to try the above. If it doesn’t work, please send us the GitHub repo, and we’ll have another look.

Thanks,  
Charly

---

<div class="post-metadata">

**Author:** ![gkakde](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/gkakde/32/30709_2.png) [@gkakde](https://discuss.streamlit.io/u/gkakde)\
**Post date:** [August 15, 2023, 8:20am UTC](https://discuss.streamlit.io/t/deploy-error/49341/3 "2023-08-15T08:20:26Z")

</div>

Many thanks. Got over this. Now I am encountering a new error  
ModuleNotFoundError: No module named ‘sqlalchemy’. You need to install the ‘sqlalchemy’ package to use this connection.

---

<div class="post-metadata">

**Author:** ![gkakde](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/gkakde/32/30709_2.png) [@gkakde](https://discuss.streamlit.io/u/gkakde)\
**Post date:** [August 15, 2023, 8:20am UTC](https://discuss.streamlit.io/t/deploy-error/49341/4 "2023-08-15T08:20:57Z")

</div>

[https://github.com/gkakde/OIDataV2/tree/main](https://github.com/gkakde/OIDataV2/tree/main)

---

<div class="post-metadata">

**Author:** ![Charly\_Wargnier](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/charly_wargnier/32/1504_2.png) [@Charly\_Wargnier](https://discuss.streamlit.io/u/Charly_Wargnier)\
**Post date:** [August 15, 2023, 8:25am UTC](https://discuss.streamlit.io/t/deploy-error/49341/5 "2023-08-15T08:25:52Z")

</div>

Did you add `sqlalchemy` to your `requirements.txt` file. Your `requirements.txt` file should now look something like this:

```auto
matplotlib
sqlalchemy
... (other dependencies)

```

Make sure you commit and push the changes to your GitHub repository. Then, redeploy your Streamlit app. This should hopefully solve the `ModuleNotFoundError` you’re having. 🤞

Best,  
Charly

---

<div class="post-metadata">

**Author:** ![gkakde](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/gkakde/32/30709_2.png) [@gkakde](https://discuss.streamlit.io/u/gkakde)\
**Post date:** [August 15, 2023, 8:37am UTC](https://discuss.streamlit.io/t/deploy-error/49341/6 "2023-08-15T08:37:19Z")

</div>

Got it. Added all dependencies. Expected issues as this is my first app. Redone the app and retried to get a new error

Secrest have been added in advanced tab

```auto
Exception: Can not find valid pkg-config name.
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
```

---

<div class="post-metadata">

**Author:** ![gkakde](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/gkakde/32/30709_2.png) [@gkakde](https://discuss.streamlit.io/u/gkakde)\
**Post date:** [August 15, 2023, 8:47am UTC](https://discuss.streamlit.io/t/deploy-error/49341/7 "2023-08-15T08:47:16Z")

</div>

Many thanks. It just worked. Wonderful help!

---

<div class="post-metadata">

**Author:** ![Charly\_Wargnier](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/charly_wargnier/32/1504_2.png) [@Charly\_Wargnier](https://discuss.streamlit.io/u/Charly_Wargnier)\
**Post date:** [August 15, 2023, 8:50am UTC](https://discuss.streamlit.io/t/deploy-error/49341/8 "2023-08-15T08:50:08Z")

</div>

Glad it worked!

Happy Streamlit’ing! 🎈

---

<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 17, 2023, 8:50am UTC](https://discuss.streamlit.io/t/deploy-error/49341/9 "2023-08-17T08:50:15Z")

</div>

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