Hello,
I am trying to call a bash script on Ubuntu from Matlab. The script is itself a call to some python code in the form of
mpiexec -n 4 python $PY_SCRIPT_PATH $1 $2 $3 $4
The python code uses opencv, cuda, …:
from sys import argvimport numpy as npimport timeimport colorsysimport matplotlib.image as imgimport matplotlib.pyplot as pltimport scipy.misc as scipyimport cv2from Cheetah.Template import Templateimport pycuda.compiler as nvccimport pycuda.gpuarray as gpuimport pycuda.driver as cuimport pycuda.autoinitfrom mpi4py import MPIimport math
The matlab terminal outputs
ImportError: /usr/lib/python2.7/dist-packages/cv2.so: undefined symbol: _ZTIN2cv5BRISKE
when I try to run the command. I tried reloading the .bashrc from the script to reset the environment variables with no luck. Does anyone know how to fix it?
Thanks
Best Answer