Dependency error even after adding libglib2.0-0 to package.txt

Even after adding the libglib2.0-0 to package.txt I still get this error:

Traceback (most recent call last):

  File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/", line 333, in _run_script

    exec(code, module.__dict__)

  File "/app/breast-cancer-detector-streamlit-app/", line 6, in <module>

    import cv2

  File "/home/appuser/venv/lib/python3.7/site-packages/cv2/", line 5, in <module>

    from .cv2 import *

ImportError: cannot open shared object file: No such file or directory

Hi @saaranshM, welcome to the Streamlit community!! :wave: :partying_face:

To resolve the error:

Once you’ve made the :point_up: changes, your app should deploy successfully!

Happy Streamlit’ing! :balloon:

Thank you so much for the help!

1 Like