prabhakar-sivanesan / MS-Teams-background-changer

Utility application to add background blur and custom background image to MS teams on Linux
https://prabhakar-sivanesan.github.io/me/
52 stars 4 forks source link

`libnvinfer.so.7` nout found #11

Open dxps opened 1 year ago

dxps commented 1 year ago

Hi everyone!

I'm on Pop!_02 22.04 (up to date), and while trying this, managed to have all ok, except that it fails at startup like this:

…/MS-Teams-background-changer on  main [!?] ❯ python3 main.py 
2023-01-09 18:51:24.021859: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-01-09 18:51:24.544095: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/dxps/.local/lib/python3.10/site-packages/cv2/../../lib64:
2023-01-09 18:51:24.544154: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/dxps/.local/lib/python3.10/site-packages/cv2/../../lib64:
2023-01-09 18:51:24.544162: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
  File "/tmp/MS-Teams-background-changer/main.py", line 36, in <module>
    background = config['background']['bg_image']
  File "/usr/lib/python3.10/configparser.py", line 1258, in __getitem__
    raise KeyError(key)
KeyError: 'bg_image'
…/MS-Teams-background-changer on  main [!?] took 1s❯ 

Do I need to install TensorRT :grey_question:

Thanks!