Unable to deploy my opencv app on streamlit

Help me in solving below issue
App link :- https://abhi-opencvapp.streamlit.app/
Github link;- GitHub - abhinavomer/opencv_basic_app


Error:- File “/mount/src/opencv_basic_app/opencv_app1.py”, line 1, in

import cv2

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

2024-04-02 15:47:05.649 Uncaught app exception

Traceback (most recent call last):

File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 542, in _run_script

exec(code, module.__dict__)

File “/mount/src/opencv_basic_app/opencv_app1.py”, line 1, in

import cv2

ImportError: libGL.so.1: cannot

Hi @abhinavomer

The error that you’re encountering

may be resolved by installing prerequisite system packages like:

libgl1

which you could do by including it in a file called packages.txt.

Please also see the following Docs page for more information:

Hope this helps!

Hi @dataprofessor

Please can you solve above problem

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.