OpenCV-for-Pi icon indicating copy to clipboard operation
OpenCV-for-Pi copied to clipboard

Installation fine, but then this....

Open neilyoung opened this issue 7 years ago • 5 comments

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

EDIT: raspbian stretch, latest

Any pointer welcome

neilyoung avatar Feb 14 '18 12:02 neilyoung

same problem

andreac avatar Feb 23 '18 21:02 andreac

Ditto. Used a browser to display the steps, then copy/paste into an lxterminal window to eliminate typos. Everything went as expected until I typed "import cv2" into python.

jimb137 avatar Mar 08 '18 14:03 jimb137

Just thought I'd add some detail. System is pi zeroW OS is Stretch libavcodec.so.56 does not exist, however a newer version, libavcodec.so.57 does exist.

Perhaps the issue has to do with the three of us that have reported this issue running 'Stretch". And, just maybe you compiled/linked openCV on Jessie???

jimb137 avatar Mar 08 '18 15:03 jimb137

The solution is to go and install version 56 I suppose. Been a bit of a pain but install an older version of ffmpeg did it for me. Would be cool to see an update to this tho! :)

jakeau avatar Mar 26 '18 06:03 jakeau

@neilyoung https://github.com/abhiTronix/OpenCV_Raspberry_pi_TBB Latest ;)

abhiTronix avatar Apr 08 '18 13:04 abhiTronix