-
Notifications
You must be signed in to change notification settings - Fork 52
ImportError: libavcodec.so.56: cannot open shared object file: No such file or directory #10
Comments
Having the same problem. |
Did you install all of the dependencies in the prior steps? |
The build is also a little out of date, so it could be that too. I'll try to make an updated version soon. |
I am also having the problem. I work with a bunch of student on a First Robotics Team and they would love it if you could update the build to avoid the ImportError: libavcodec.so.5 prolem. Thanks so much for you efforts. |
An update would be appreciated by our robotics team over at NYU as well! |
This must be a raspbian stretch related issue. I have reverted to a fresh (most recent) jessie image and it works: >>> import cv2
>>> cv2.__version__
'3.1.0' |
Thank rbirkby how do you get the latest jessie image? |
Thanks -- sadly when the command Could we somehow rebuild the latest-OpenCV.deb so it has the latest version of opencv. Thanks so much for you efforts. I hope we can find a solution. |
Strange. That was not my experience. My only deviation from the script was to install numpy with apt instead of pip. |
rbirkby -- Did you start with clean Jessie build? Did you do sudo apt-get upgrade? I wonder why yours worked and mine failed. |
Yes. Burned it to an sd card. apt-get update/upgrade. |
rbirkby -- Thanks so very much. It finally worked. I do not know what I did wrong. Keith |
I faced the same issue @kglasnapp I uninstalled this version and installed opencv using this(Takes less than 5 min!) and it works like a charm: |
hey @inzi119 did you find the solution to the problem because i m also getting same problem. |
I also am having this issue! |
Hi! I'm also having this issue. Has anyone managed to find a solution? EDIT: Using an older version of Jessie solved it for me. |
Got it working on my Pi Zero W with Jessie. Does not work on the latest release of Raspbian "Stretch", but starting fresh with Jessie was smooth sailing. |
if @jabelone could recompile the latest version of OpenCV with Raspberry Stretch, this would be much appreciated. |
Recompiling a 3.4 version now. |
Sorry, but Where is the 3.4 version? Thanks for your work!!! |
Hi, I am still getting this issue. |
Hello, I am still having this issue too. |
I am also having this issue, could you please update it? |
For those still having this issue, search your distro's package manager for compatibility libraries. On Arch Linux, I was able to install |
@danarnold I am new to Linux and RPi. Would you be able to give a few more details or resources on how to install ffmpeg-compat-57? Any help is much appreciated, |
@nathangonzales95 You need to search your distribution's package manager for a compatibility library for this older version of ffmpeg. Or, you could try downgrading your version of ffmpeg. I'm using a desktop running Arch Linux, not a raspberry pi, so I don't know anything about your system. |
@danarnold |
Installing opencv-contrib-python resolved this issue on 18.04.2 LTS (Bionic Beaver)
|
I did exactly as you said. but when I type import cv2 it gives an error "ImportError: libavcodec.so.56: cannot open shared object file: No such file or directory"
The text was updated successfully, but these errors were encountered: