/usr/lib/pyshared/python2.7/cv2.so depends on missing libavcodec52?

Asked by Gerwin

After installing python-opencv in Ubuntu 12.04 LTS, the python statement "import cv2" results in an error:

ImportError: libavcodec.so.52: cannot open shared object file: No such file or directory

Which is correct since libavcodec.so.52 is not installed nor is it possible to install it from the regular respositories since itis be replaced by libavcodec.so.53. Please advice how to cope with this dependency problem.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu opencv Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gerwin (g-m-voorsluijs) said :
#1

Checked with another system, which also runs 12.04, but a fresh install instead of an upgrade from 10.04 (some time ago) and to my astonishment, the same .deb package (downloaded straight from http://nl.archive.ubuntu.com/ubuntu/pool/universe/o/opencv/python-opencv_2.3.1-7_i386.deb and unpacked with dpkg -x) show different dependencies:

gerwin@PC1:/tmp/python-opencv/usr/lib/pyshared/python2.7$ ldd cv2.so | grep avcodec
 libavcodec.so.53 => /usr/lib/i386-linux-gnu/i686/cmov/libavcodec.so.53 (0xb51f7000)

vs.

gerwin@PC2:/tmp/python-opencv/usr/lib/pyshared/python2.7$ ldd cv2.so | grep avcodec
 libavcodec.so.52 => not found

Is there another part in the system that defines the dependencies other than the files themselves?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

I suggest you report a bug

Can you help with this problem?

Provide an answer of your own, or ask Gerwin for more information if necessary.

To post a message you must log in.