Error import tensorrt

Hello,
I’m new to TensorRT, I’m planning to use it to deploy a custom trained YoloV3 on an Nvidia TX2.
Currently I’m trying it out on my laptop ( GT M750 ), I followed step-by-step the Ubuntu (16.04 LTS) install guide.

Now I’m trying to put together a script to precompile an engine, however I’m facing the following error when I try to import TensorRT:

import tensorrt as trt

[libprotobuf FATAL google/protobuf/message.cc:344] File appears to be in generated pool but wasn’t registered: tensorflow/core/framework/op_def.proto
terminate called after throwing an instance of ‘google::protobuf::FatalException’
what(): File appears to be in generated pool but wasn’t registered: tensorflow/core/framework/op_def.proto

As the error happen so early I’m a bit clueless about how to debug it, so I was wondering if you can point me in the right direction, Thanks.

Cesare

Hi, I am getting the same error. Can someone please let me know the reason behind this error and pointers to debug it.

Thanks,
Achyut