Libgl.so.1 Cannot Open Shared Object File
There is import error when i run 'import cv2' { errormessage: I managed to fix it myself. Cannot open shared object file: You receive the error importerror libgl.so.1 cannot open shared object file no such file or directory when using opencv in your app deployed on streamlit cloud.











![[Solved] ImportError libGL.so.1 cannot open shared object file No such file or directory [Solved] ImportError libGL.so.1 cannot open shared object file No such file or directory](https://i2.wp.com/exerror.com/wp-content/uploads/2021/10/ImportError-libGL.so_.1-cannot-open-shared-object-file-No-such-file-or-directory.jpg)



![[Streamlit sharing] Importerror libgl.so.1 cannot open shared object file no such file or [Streamlit sharing] Importerror libgl.so.1 cannot open shared object file no such file or](https://i2.wp.com/aws1.discourse-cdn.com/business7/uploads/streamlit/optimized/2X/b/bf9d2db6fa3f57e11b58b8ab4429cb5cc8855e77_2_1380x732.png)
![[Streamlit sharing] Importerror libgl.so.1 cannot open shared object file no such file or [Streamlit sharing] Importerror libgl.so.1 cannot open shared object file no such file or](https://i2.wp.com/aws1.discourse-cdn.com/business7/uploads/streamlit/optimized/2X/5/51200102a106fdf996fb9edf3d65a6495e67afab_2_1380x760.jpeg)
![[Solved] Importerror libgl.so.1 cannot open shared object file no such file or directory [Solved] Importerror libgl.so.1 cannot open shared object file no such file or directory](https://i2.wp.com/itsmycode.com/wp-content/uploads/2022/03/Importerror-libgl.so_.1-cannot-open-shared-object-file-no-such-file-or-directory.png)

You receive the error importerror libgl.so.1 cannot open shared object file no such file or directory when using opencv in your app deployed on streamlit cloud. Cannot open shared object file: The text was updated successfully, but these errors were. No such file or directory.