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/script_runner.py", line 333, in _run_script

    exec(code, module.__dict__)

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

    import cv2

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

    from .cv2 import *

ImportError: libgthread-2.0.so.0: 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:
Snehan

Thank you so much for the help!

1 Like