Ask Your Question
0

Dependency on libvpx

asked 2018-03-08 05:49:55 -0600

updated 2018-03-09 21:47:40 -0600

berak gravatar image

Hello every one ,

i'm using OpenCv on Raspberry Pi. I just did an apt-get update & upgrade then opencv stops working. This line was the Problem:

from .cv2 Import *

ImportError: libvpx.so.4: cannot open shared object file: No such file or Directory

I tried to install libvpx and libvpx-dev but it does not work. Anyone knows how to fix this?

edit retag flag offensive close merge delete

Comments

opencv does not maintain any prebuild python packages.

you'll have to make an issue with the actual maintainer of whatever you got there

when in doubt, build from src

berak gravatar imageberak ( 2018-03-08 05:58:48 -0600 )edit
1

@leminhduc2412. You cannot used this from .cv2 Import * You must know what the namespace you wanted to extract. For instance:

from cv2 import VideoWriter, VideoWriter_fourcc, imread, resize
supra56 gravatar imagesupra56 ( 2018-03-08 06:26:43 -0600 )edit

Btw, @leminhduc2412. I am using rpi 3.

supra56 gravatar imagesupra56 ( 2018-03-08 06:36:15 -0600 )edit

Thanks for the replies.

By that line i meant the line in the __init__ file of cv2. First i did "Import cv2" then it yields that error

leminhduc2412 gravatar imageleminhduc2412 ( 2018-03-08 06:45:05 -0600 )edit

After you downloaded, did you installed pip3 install opencv-python?

supra56 gravatar imagesupra56 ( 2018-03-08 09:27:01 -0600 )edit

libvpx seems to be a dependancy of the 3rdparty webm image codec.

but again, this is not really an opencv problem, more a redistribution one.

ping the maintainers of your raspi package, we cannot help you here.

berak gravatar imageberak ( 2018-03-09 21:46:08 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-03-09 21:20:02 -0600

supra56 gravatar image

updated 2018-03-09 21:22:02 -0600

Found your mistyped. Removed peroid. Change this from .cv2 Import * to from cv2 Import *

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-03-08 05:49:55 -0600

Seen: 476 times

Last updated: Mar 09 '18