Built a flask app that works when I run it locally (Windows 10). Deployment through local git is successful, but when I try to visit the url, all I see if Application Error. So when I check the log stream, it shows that the app breaks down when it tries to import pyodbc with the error "ImportError libodbc.so.2: cannot open shared object file."
So I SSH'ed into the container, activated the virtual environment, called open python and called import pyodbc and it worked. Now I'm confused as to why it would fail when I try to visit the URL, vs when I SSH and import pyodbc myself it would work. I'm not sure if I've provided enough detail so let me know if I should add anything else.
What is going on? How do I fix my container so that it can import pyodbc?