Operation Error Reporting after TenorRT Installation

ImportError: /usr/local/lib/python3.5/dist-packages/tensorrt/tensorrt.so: undefined symbol: _Py_ZeroStruct

i just run import tensorrt as trt !

i need help! I’m going nuts!

14.04.1-Ubuntu

CUDA Version 9.0.176

#define CUDNN_MAJOR 7
#define CUDNN_MINOR 5
#define CUDNN_PATCHLEVEL 0

#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

Could you provide detailed steps so that I could try to reproduce?

Hi,

Looks like you have a mismatch between the python interpreter you are using to run the script and the python library that is being linked by tensorrt.so.

If possible, use NVIDIA TensorRT Container (which handles all the python, cuda, tf, etc dependencies for you). https://docs.nvidia.com/deeplearning/sdk/tensorrt-container-release-notes/running.html

See this forum post for more discussion on the issue: https://devtalk.nvidia.com/default/topic/1043215/tensorrt/tensorrt-import-undefined-symbol/

Thanks,
NVIDIA Enterprise Support