My Public Streamlit Cloud App can be seen here:
https://orderdash.streamlit.app/
My GitHub page for the app can be seen here:
I deployed a streamlit app on the community cloud using GitHub - streamlit/app-starter-kit: Streamlit App Starter Kit helps kick start your Streamlit app creation., then followed the guide in Connect Streamlit to PostgreSQL<!-- --> - Streamlit Docs to connect to a database. I have filled in secrets, as well as adding psycopg2-binary and
sqlalchemy to the requirements file. However, the st.connect function always causes ModuleNotFound. I have tried both unpinned and pinned versions in the requirements.txt
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/mount/src/app-starter-kit/streamlit_app.py", line 6, in <module>
conn = st.connection("postgresql", type="sql")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/connection_factory.py", line 343, in connection_factory
raise ModuleNotFoundError(f"{str(e)}. {extra_info}")
ModuleNotFoundError: No module named 'sqlalchemy'. You need to install the 'sqlalchemy' package to use this connection.