Deploy error

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


Kindly guide

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:

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


1 Like

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.

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

... (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. :crossed_fingers:


1 Like

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

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

Many thanks. It just worked. Wonderful help!

1 Like

Glad it worked!

Happy Streamlit’ing! :balloon:

1 Like

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