ImportError: libGL.so.1: cannot open shared object file: No such file or directory

please help. I deployed this app of mine. Here’s the github link: LINK

PLEASE HELP. IT WORKS PERFECTLY FINE ON MY MAC USING A NEW CONDA ENV

File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 324, in _run_script
    exec(code, module.__dict__)File "/app/facial-app/test.py", line 6, in <module>
    from deepface import DeepFaceFile "/home/appuser/.local/lib/python3.7/site-packages/deepface/DeepFace.py", line 13, in <module>
    import cv2File "/home/appuser/.local/lib/python3.7/site-packages/cv2/__init__.py", line 5, in <module>
    from .cv2 import *

Hi @catphish, welcome to the Streamlit community.

Where are you trying to deploy this app?

I’m deploying it in s4a.streamlit.io

Streamlit Sharing (beta)

Not sure if you have access to the S4A forum, so I’ll copy the answer out here as well:

In Streamlit sharing platform, we support specifying a list of Debian packages to install via apt-get in a packages.txt file. The file is expected to be at the top level alongside requirements.txt . Could you please give it a shot?

So you can add whatever libraries are missing for your app into a packages.txt file and they will be added to your S4A image.

1 Like

ohhhh okie. Thanks so much!