Error when deploy

Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
    exec(code, module.__dict__)
  File "/mount/src/drown_detect/main.py", line 2, in <module>
    import cv2
  File "/home/adminuser/venv/lib/python3.8/site-packages/cv2/__init__.py", line 8, in <module>
    from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
2024-01-20 10:05:15.189 503 GET /script-health-check (10.12.165.143) 189.07ms
2024-01-20 10:05:19.975 Uncaught app exception

please help me to solve this problem, here my github:

Hi @neilzs

The ImportError: libGL.so.1 can be solved by installing a library dependency. To do this, you can include the following in packages.txt file as follows:

libgl1-mesa-glx

Hope this helps!

thanks you sir!

1 Like

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