1

When using runtime version 1.8, i'm getting this error when I tried to import cv2:

/usr/lib/python2.7/dist-packages/cv2.x86_64-linux-gnu.so: undefined symbol: _ZN2cv9Algorithm7getListERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE

Anyone knows if there's any workaround? Looks like glib needs to be installed in the image, but it wasn't.

user521044
  • 91
  • 1
  • 3

1 Answers1

1

Cloud ML images already has installed the python-opencv package. If you are facing the issue in your local environment instead of CloudML, most probably you have dependencies problems, for example when two different programs modify the same package. Other similar threads that solved the issue are:

I found this tutorial that may be useful for you Running a Spark Application with OpenCV on Cloud Dataproc.

rsantiago
  • 2,054
  • 8
  • 17