Hi KevinSchlichte,
Thanks for the quick response.
I have reflashed the Jetson TX2 board, and please find the full installation logs for TensorRT-5.0.2.6 on TX2 device.
nvidia@tegra-ubuntu:~$ export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:/home/nvidia/TensorRT-5.0.2.6/lib
nvidia@tegra-ubuntu:~$ echo $LD_LIBRARY_PATH
/usr/local/cuda-9.0/lib64:/home/nvidia/TensorRT-5.0.2.6/lib
nvidia@tegra-ubuntu:~$ cd TensorRT-5.0.2.6/python/
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/python$ sudo pip3 install tensorrt-5.0.2.6-py2.py3-none-any.whl
[sudo] password for nvidia:
The directory '/home/nvidia/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nvidia/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing ./tensorrt-5.0.2.6-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): numpy in /home/nvidia/.local/lib/python3.5/site-packages (from tensorrt==5.0.2.6)
Installing collected packages: tensorrt
Successfully installed tensorrt-5.0.2.6
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/python$ cd ../uff/
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/uff$ sudo pip3 install uff-0.5.5-py2.py3-none-any.whl
The directory '/home/nvidia/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nvidia/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing ./uff-0.5.5-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.11.0 in /home/nvidia/.local/lib/python3.5/site-packages (from uff==0.5.5)
Requirement already satisfied (use --upgrade to upgrade): protobuf>=3.3.0 in /home/nvidia/.local/lib/python3.5/site-packages (from uff==0.5.5)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /home/nvidia/.local/lib/python3.5/site-packages (from protobuf>=3.3.0->uff==0.5.5)
Requirement already satisfied (use --upgrade to upgrade): six>=1.9 in /home/nvidia/.local/lib/python3.5/site-packages (from protobuf>=3.3.0->uff==0.5.5)
Installing collected packages: uff
Successfully installed uff-0.5.5
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/uff$ which convert-to-uff
/usr/local/bin/convert-to-uff
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/uff$ cd ../graphsurgeon/
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/graphsurgeon$ sudo pip3 install graphsurgeon-0.3.2-py2.py3-none-any.whl
The directory '/home/nvidia/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nvidia/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing ./graphsurgeon-0.3.2-py2.py3-none-any.whl
Installing collected packages: graphsurgeon
Successfully installed graphsurgeon-0.3.2
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/graphsurgeon$ python3
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorrt as trt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/tensorrt/__init__.py", line 1, in <module>
from .tensorrt import *
ImportError: /usr/local/lib/python3.5/dist-packages/tensorrt/tensorrt.so: cannot open shared object file: No such file or directory
>>>
[1]+ Stopped python3
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/graphsurgeon$ ls /usr/local/lib/python3.5/dist-packages/tensorrt/ -lrt
total 2276
-rw-r--r-- 1 root staff 3092 Jan 10 10:02 __init__.py
-rwxr-xr-x 1 root staff 1146544 Jan 10 10:02 tensorrt.cpython-35m-x86_64-linux-gnu.so
-rwxr-xr-x 1 root staff 1171120 Jan 10 10:02 tensorrt.so
drwxr-sr-x 2 root staff 4096 Jan 10 10:02 __pycache__
drwxr-sr-x 7 root staff 4096 Jan 10 10:02 legacy
nvidia@tegra-ubuntu:~/TensorRT-5.0.2.6/graphsurgeon$ cd
nvidia@tegra-ubuntu:~$ echo $LD_LIBRARY_PATH
/usr/local/cuda-9.0/lib64:/home/nvidia/TensorRT-5.0.2.6/lib
nvidia@tegra-ubuntu:~$ python3
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorrt as trt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/tensorrt/__init__.py", line 1, in <module>
from .tensorrt import *
ImportError: /usr/local/lib/python3.5/dist-packages/tensorrt/tensorrt.so: cannot open shared object file: No such file or directory
>>>
Could you please let me know where did you tried to reproduce this error? Is it Jetson TX2 device?
Also refer to the link commented above by @varun365.
Let me know if you need any specific info. to debug this further.