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

I encountered a problem that I couldn’t solve when running my streamlit app. :sob: :sob: :sob:
My GitHub repository url is https://github.com/XAW2901120081/fracture-detection-yolov8/tree/main/fracture_detection
Please help me find out where the problem is. Thank you very much! The following is the problem error: ───────────────────── Traceback (most recent call last) ────────────────────── /home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptru nner/exec_code.py:88 in exec_func_with_error_handling

/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptru nner/script_runner.py:579 in code_to_exec

/mount/src/fracture-detection-yolov8/fracture_detection/fracture_detection_y olov8.py:7 in

4 import shutil 5 import concurrent.futures 6 import numpy as np ❱ 7 import cv2 8 from PIL import Image 9 from ultralytics import YOLO 10 import streamlit as st ────────────────────────────────────────────────────────────────────── ImportError: libGL.so.1: cannot open shared object file: No such file or directory 2024-10-31 08:09:37.674 503 GET /script-health-check (127.0.0.1) 149.74ms

Your packages.txt must be in the root of our repo. You probably can (and maybe should) remove opencv-python-headless from your requirements file, since ultralytics depends on opencv-python anyway.