I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception Traceback (most recent call last): File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script exec(code, module.__dict__) File "/app/data_test/src/example.py", line 4, in <module> import psycopg2 ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?