Issue with mxnet framework

I install mxnet from This link and test with resnet18 working but when I try to :
from mxnet import image

And then look Image got issue like this :
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “”, line 120, in
for i, (data, label) in enumerate(train_data):
File “/usr/local/lib/python3.6/dist-packages/mxnet/gluon/data/”, line 484, in next
batch = pickle.loads(ret.get(self._timeout))
File “/usr/lib/python3.6/multiprocessing/”, line 644, in get
raise self._value
mxnet.base.MXNetError: Traceback (most recent call last):
File “/home/nvidia/mxnet/mxnet/src/io/”, line 250
MXNetError: Build with USE_OPENCV=1 for image io.

I try build mxnet from source success too.
-DCMAKE_CXX_FLAGS=-I/usr/local/cuda/targets/aarch64-linux/inlude \

This is my cmake config.


The error complains about the OpenCV support in MXNet.

We have verified a working script with OpenCV enabled in the below comment.
Please give it a try:


Thank you. It’s working now.

Hello, I try to import some librery got issue like :
from mxnet.contrib import onnx as onnx_mxnet

I run python3 in command line got issue like this :

[libprotobuf ERROR google/protobuf/] Symbol name “onnx.AttributeProto” conflicts with the existing symbol “onnx.AttributeProto”.
[libprotobuf FATAL google/protobuf/] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
terminate called after throwing an instance of ‘google::protobuf::FatalException’
what(): CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
Aborted (core dumped)

Let’s check the protobuf compatibility issue in the new topic:


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.