Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: libnvinfer.so.5 on jetson nano #17

Open
SaddamBInSyed opened this issue Feb 10, 2020 · 7 comments
Open

OSError: libnvinfer.so.5 on jetson nano #17

SaddamBInSyed opened this issue Feb 10, 2020 · 7 comments

Comments

@SaddamBInSyed
Copy link

@AastaNV ,

while running the "python3 main.py object_7.jpg "
I am facing the below error,

/home/deeplearning/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/deeplearning/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/deeplearning/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/deeplearning/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:529: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/deeplearning/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:530: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/deeplearning/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:535: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
File "main.py", line 18, in
ctypes.CDLL("/home/deeplearning/Downloads/TRT_object_detection/lib/libflattenconcat.so")
File "/usr/lib/python3.6/ctypes/init.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libnvinfer.so.5: cannot open shared object file: No such file or directory

please advise

@Adnaram
Copy link

Adnaram commented Feb 12, 2020

Same error here, please update.

@sdario1980
Copy link

Same error here

@Adnaram
Copy link

Adnaram commented Mar 5, 2020

I found the solution. The libflattenconcat must be recompiled.

cd /usr/src/tensorrt/samples/python/uff_ssd/
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr/local ..
cp libflattenconcat.so /home/myuser/mycode

@sdario1980
Copy link

Thank you. However (it might be a stupid question, but in a linux beginner) where is the libflattenconcat.so generated? i can't find it.

Thanks

@Adnaram
Copy link

Adnaram commented Mar 9, 2020

It should be in /usr/src/tensorrt/samples/python/uff_ssd/build if you run the commands above

@lakshaychhabra
Copy link

lakshaychhabra commented Mar 16, 2020

@Adnaram

I found the solution. The libflattenconcat must be recompiled.

cd /usr/src/tensorrt/samples/python/uff_ssd/
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr/local ..
cp libflattenconcat.so /home/myuser/mycode

remember to do

make
after cmake as per https://forums.developer.nvidia.com/t/problems-with-ssd-mobilenet-v2-uff/74326/17

@ram-ch
Copy link

ram-ch commented Nov 14, 2021

Need help. I have tried this on Jetson AGX

cd /usr/src/tensorrt/samples/python/uff_ssd/
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr/local ..

Facing this issue
CMake Error: The source directory "/usr/src/tensorrt/samples/python/uff_ssd" does not appear to contain CMakeLists.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants