Pls help me appreciated github id(https://github.com/AbdukeramDolkun/detectstuff/tree/main/YOLOv8-streamlit-app-master)

ImportError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).

Traceback:

File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)File "/mount/src/detectstuff/YOLOv8-streamlit-app-master/streamlit_app.py", line 16, in <module>
    from utils import load_model, infer_uploaded_image, infer_uploaded_video, infer_uploaded_webcamFile "/home/adminuser/venv/lib/python3.8/site-packages/cv2/utils/__init__.py", line 3, in <module>
    import cv2

Hi @AbdukeramDolkun,

Thanks for posting!

Can you share a link your repo so we can help troubleshoot better?

Either try to use opencv-python-headless only or else see here:

sorry for the late reply
btw my github url is second/detection at main · AbdukeramDolkun/second · GitHub)

thank you so much i’ll try it

ultralytics enforces the installation of the other packages anyway, therefore this should do the job (but untested):

requirements.txt

streamlit==1.22.0
ultralytics==8.0.98

packages.txt

libgl1
libglib2.0-0