Importerror: libgl.so.1: cannot open shared object file: no such file or directory opencv error

I’ve got a same problem on my Mac, I’ve added requirements.txt as well as packages.txt but still having a same error message.
When I tried to do “pip install libjasper-dev” then it says

ERROR: Could not find a version that satisfies the requirement libjasper-dev (from versions: none)
ERROR: No matching distribution found for libjasper-dev

so does the case of “pip install libgl1-mesa-glx”

Here is the link for more detail info (traceback, requirements.txt, packages.txt)

It’s been struggling with this issue to deploy the app using Streamlit Sharing for 3 days now.