Error in Jetbot's object_following sample: 'tensorrt.tensorrt.Runtime' object has no attribute 'destroy'

I ran just the first two lines of the sample:

from jetbot import ObjectDetector
model = ObjectDetector('ssd_mobilenet_v2_coco.engine')

and netted this error:

[TensorRT] WARNING: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/", line 136, in destroy
AttributeError: 'tensorrt.tensorrt.Runtime' object has no attribute 'destroy'

What do you think is the cause of this error?


Did you setup the software based on this page?

There is a customized image for JetBot.


Yes, I followed that procedure before I ran that code on my Jetson Nano


Which TensorRT version do you use?
Suppose you should use the v5.0 from JetPack4.2.


Yes, I’m using those. It’s a fresh flash of the Nano with Jetpack4.2


Do you use python3?

I have met the same problem. Do you solve it?