I’m trying to deploy my first app. The app works fine on my local machine but I receive errors I cannot make sense of when deploying.
Streamlit app: https://hharleman-fred.streamlit.app/
GitHub repo: GitHub - hharleman/fred: FRED financial data to compare economic metrics at the end of Bidens term to Trump's second term.
It seems like every time I try to deploy, I get an import error for one of the packages I’m importing. This time it was plotly. Previously it was sqlalchemy.
ModuleNotFoundError: No module named ‘plotly’
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py:88 in exec_func_with_error_handling
/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py:579 in code_to_exec
/mount/src/fred/FRED.py:11 in
8 import streamlit as st
9 import requests
10 import pandas as pd
❱ 11 import plotly.express as px
12 import sqlalchemy
13 from sqlalchemy import create_engine
14 import psycopg2