Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Platter__Paolo
Beginner
61 Views

Opencv loading from python on Linux

Hi,

I'm in trouble to load the opencv library you provided with python bindings, only on linux, on windows is working fine.

python

Python 2.7.12 (default, Dec  4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>import cv2
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ImportError: /opt/intel/computer_vision_sdk_2018.2.299/python/python2.7/cv2.so: undefined symbol: _ZTIN2cv3dnn19experimental_dnn_v55LayerE

Any ideas ?

Thanks

0 Kudos
2 Replies
Severine_H_Intel
Employee
61 Views

Hi Paolo, 

I checked your issue and I can not reproduce it on Ubuntu 16.04 LTS with same Python version and same OpenVINO version. Which linux OS are you using? Ubuntu or CentOS? Which version ? You can also look what is inside your Python path:  echo $PYTHONPATH 

Have you installed other libraries that might create conflict in the OpenCV bindings? 

Best, 

Severine

 

Platter__Paolo
Beginner
61 Views

I'm using Ubuntu 16.04 LTS and OpenVino 2018 R2 Release. 

Here my $PYTHONPATH:

/opt/intel/computer_vision_sdk_2018.2.299/python/python2.7:/opt/intel/computer_vision_sdk_2018.2.299/deployment_tools/model_optimizer:

There aren't libraries in conflicts with OpenCV library in Python2.7.

Thanks