Unable to deploy My Streamlit App on Cloud

Hi all,

I’m having trouble deploying my app on Streamlit Cloud. I’ve tried everything I could find online, but I haven’t been able to resolve the issue.

Here’s what I’ve tried so far:

  • Added all the necessary libraries to requirements.txt

  • Removed any unnecessary libraries

  • Added an __init__.py file to the root directory

Unfortunately, none of these steps have worked. Could anyone please help me figure out what might be going wrong?

Thanks in advance!

Github: GitHub - vinayak-tripathi/CorpDash: This is a Dashboard to display important events in indian share market

Error Message:

Getting requirements to build wheel did not run successfully.

  │ exit code: 1

  ╰─> [35 lines of output]

...........
<more installations>
...........

Successfully installed markdown-it-py-4.0.0 mdurl-0.1.2 pygments-2.19.2 rich-14.1.0

[notice] A new release of pip is available: 24.0 -> 25.2

[notice] To update, run: pip install --upgrade pip

────────────────────────────────────────────────────────────────────────────────────────

[11:31:33] ❗️ installer returned a non-zero exit code

[11:31:33] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

Hi there, this is a total shot in the dark but i recently deployed an app to community cloud that is working. I noticed in your requirements.txt you used ‘pymysql’. I used ‘pymssql’ in mine and it is working fine. It might be worth trying out and switching - I originally used pyodbc while testing locally but that wasn’t supported by streamlit so I switched to ‘pymssql’.

Here is the connection string I used:

config = st.secrets[“database”]

url = URL.create(
drivername=“mssql+pymssql”,
username=config[“username”],
password=config[“password”],
host=config[“server”],
database=config[“database”]
)

engine = create_engine(url, pool_pre_ping=True)

Thanks @rob.ballard for the reply.
However, initally I have mysqlclient and then I switched back to pymysql. Switching this particular module resolved this.
Refer this post: Problem installing mysqlclient - Can not find valid pkg-config name