What Do I Do If Error Message "ModuleNotFoundError: No module named 'google'" Is Displayed During Tensor Comparison?

Symptom

During tensor comparison, an error message is displayed, as shown in Figure 1.

Figure 1 Error message for tensor comparison

The following message is displayed in the output column:

2020-01-21 09:38:17 Error: Traceback (most recent call last): File "/home/phisik3/vb_workspace/work_code/toolchain/operator_cmp/compare/CompareVector.py", line 17, in <module> File
 "/home/phisik3/vb_workspace/work_code/toolchain/operator_cmp/compare/AccumulatedRelativeError.py", line 3, in <module> File 
"/home/phisik3/vb_workspace/work_code/toolchain/operator_cmp/compare/VectorComparisonCommon.py", line 4, in <module> File 
"/home/phisik3/vb_workspace/work_code/toolchain/operator_cmp/net_inference/caffe/DumpData_pb2.py", line 6, in <module> ModuleNotFoundError: No module named 'google'

Possible Cause

Protobuf is not installed in the OS. As a result, an error occurs when the dump data of the Caffe model is parsed.

Solution

Run the following command to install Protobuf before accuracy comparison.

Log in to the MindStudio server as the MindStudio installation user, and run pip3 install protobuf --user.