Community
cancel
Showing results for 
Search instead for 
Did you mean: 
virtualdvid
Innovator
376 Views

opencv - libprotobuf.so.12 error

Hi, I was using `opencv` as usual on devcloud but today I got this error:

 

(my_env) uxxxxxx@s001-n121:~$ python  Python 3.6.3 |Intel Corporation| (default, Feb 12 2018, 06:37:09)  [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux  Type "help", "copyright", "credits" or "license" for more information.  Intel(R) Distribution for Python is brought to you by Intel Corporation.  Please check out: https://software.intel.com/en-us/python-distribution  >>> import cv2  Traceback (most recent call last):   File "<stdin>", line 1, in <module>  ImportError: libprotobuf.so.12: cannot open shared object file: No such file or directory

 

 

I started a new env to see if my current env is the problem and followed the steps from this question:

 

https://forums.intel.com/s/question/0D70P000006VnuOSAS

 

and got the same result.

 

Tried:

 

`pip install opencv-python`

`conda install -c anaconda opencv`

0 Kudos
2 Replies
Lewis-H
New Contributor I
206 Views

OpenCV DNN module is "opencv_dnn" (not "opencv_dnn_modern").

"opencv_dnn_modern" is disabled in default build of OpenCV.

To force custom pre-built protobuf library you need to pass these CMake variables:

  • -DBUILD_PROTOBUF=OFF -DPROTOBUF_UPDATE_FILES=ON
  • -DProtobuf_LIBRARY=...
  • -DProtobuf_INCLUDE_DIR=...
  • -DProtobuf_PROTOC_EXECUTABLE=...

(should work fine after merging of #10092)

 

Regards,

Lewis

Alberto_R_Intel
Moderator
206 Views

virtualdvid, Thank you for posting in the Intel® Communities Support.

 

In order for you to receive the most accurate assistance on this matter you can always visit, sign in and submit your inquiry in our Intel® Software support site:

https://software.intel.com/en-us/python-distribution

 

Or you can also post your question in our Intel® Developer Zone for forums support for further peer to peer assistance on this topic:

https://software.intel.com/en-us/forum

 

Regards,

Alberto R.

 

Intel Customer Support Technician

A Contingent Worker at Intel

Reply