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

I got the error ‘ImportError: libGL.so.1: cannot open shared object file: No such file or directory’ when i try to deploy my app is streamlit share. I have come across one of the solution of adding packages.txt. I don’t know how to create the packages.txt anyone can help?

my requirement.txt contents are

pdf2docx==0.5.6
pikepdf==7.0.0
pypdf==3.6.0
streamlit==1.18.1

Hey @Nithya_sri,

By “create a packages.txt”, we just mean create a file named packages.txt that contains external dependencies (i.e Linux dependencies outside Python environment) in the same way that your requirements.txt lists Python dependencies – check out the related section of our docs.