'python ros melodic ImportError: libcv_bridge.so: cannot open shared object file: No such file or directory

Ubuntu 18.04 LTS and ros 1.14

I run a code to extract png from bag with ubuntu 18's default python 2.7.17

and I got the error message that I'm missing a .so file

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

I built opencv from source and still not solved.

What am I missing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source