Error when deploy

Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/", line 535, in _run_script
    exec(code, module.__dict__)
  File "/mount/src/drown_detect/", line 2, in <module>
    import cv2
  File "/home/adminuser/venv/lib/python3.8/site-packages/cv2/", line 8, in <module>
    from .cv2 import *
ImportError: cannot open shared object file: No such file or directory
2024-01-20 10:05:15.189 503 GET /script-health-check ( 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: can be solved by installing a library dependency. To do this, you can include the following in packages.txt file as follows:


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.