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

app https://oidatav2-gnan.streamlit.app/

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:

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

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.

https://github.com/gkakde/OIDataV2/tree/main

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

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

Best,
Charly

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!

Glad it worked!

Happy Streamlit’ing! :balloon: