I have installed python-opencv and I can run import cv2
and check version without problems from a python shell.
When trying to source this python file in gdb to provide a new gdb command I always get:
(gdb) source /opt/src/matrix-viewer/misc/matrix-viewer-gdb.py
Traceback (most recent call last):
File "/opt/src/matrix-viewer/misc/matrix-viewer-gdb.py", line 17, in <module>
import cv2.cv as cv
ImportError: No module named 'cv2'
My PC has got the sole python instance from Ubuntu distribution, why from gdb I'm getting an import problem regarding this just installed package that I'm able to load from a python shell.
EDIT
This is a python 2 package, and gdb loads python 3... Seems unsolvable.