openSUSE 13.1 x86_64 Python 2.7.6 Yast install issue

asked 2014-05-25 13:46:14 -0500

After installing via Yast on openSUSE 13.1 x86_64 the following:

libopencv2_4 libopencv2_4-debuginfo opencv opencv-debuginfo opencv-debugsource python-opencv python-opencv-debuginfo * opencv-devel (causes a conflict to install, so not sure if this is necessary?)

Then from konsole, attempting to import either cv or cv2 into Python, there is strange behavior:


[12:35 kTHuLu@linux-lyxt ~] > python Python 2.7.6 (default, Nov 21 2013, 15:55:38) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import cv Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/cv.py", line 1, in <module> from cv2.cv import * ImportError: /usr/lib64/python2.7/site-packages/cv2.so: undefined symbol: _ZN2cv23adaptiveBilateralFilterERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEddNS_6Point_IiEEi import cv2 Segmentation fault [12:41 kTHuLu@linux-lyxt ~] > python Python 2.7.6 (default, Nov 21 2013, 15:55:38) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/lib64/python2.7/site-packages/cv2.so: undefined symbol: _ZN2cv23adaptiveBilateralFilterERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEddNS_6Point_IiEEi import cv Segmentation fault [12:41 kTHuLu@linux-lyxt ~] >


So either CV or CV2 causes an "undefined symbol" ImportError, then seg faults if an attempt to import the other, CV or CV2, then crashes Python. Any suggestions would be appreciated.

Thank you!

edit retag flag offensive close merge delete