Hello everyone I have the Oak-D camera running in a Jetson nano. I want to use the camera in a docker container in the Jetson nano. The problem is after running the container from the examples here Colorcamera/rgb_preview.py I got some errors with qt. The same error happened when I was trying to use the docker dustynv/ros:foxy-ros-base-l4t-r35.4.1. I tried a lot of ways thinking that it is opencv but nothing is working. Does anyone know what to do ? or maybe how to do it ?

This is the output:

qt.qpa.xcb: could not connect to display

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Stack trace (most recent call last):

#26 Object "python3", at 0x555a2b68c7, in

#25 Object "/lib/aarch64-linux-gnu/libc.so.6", at 0x7f9f814e17, in __libc_start_main

#24 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb65c67, in Py_BytesMain

#23 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb6603b, in Py_RunMain

#22 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb5d0ef, in PyRun_SimpleFileExFlags

#21 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb5d467, in

#20 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb5d537, in

#19 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb5d5cb, in

#18 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb4bc4b, in PyEval_EvalCode

#17 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb4bc9f, in PyEval_EvalCodeEx

#16 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fb4bd13, in _PyEval_EvalCodeWithName

#15 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fae51a3, in

#14 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fae9667, in _PyEval_EvalFrameDefault

#13 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fab2e4b, in _PyObject_MakeTpCall

#12 Object "/usr/local/bin/../lib/libpython3.9.so.1.0", at 0x7f9fac637f, in

#11 Object "/usr/local/lib/python3.9/site-packages/cv2/cv2.abi3.so", at 0x7f938af91b, in

#10 Object "/usr/local/lib/python3.9/site-packages/cv2/cv2.abi3.so", at 0x7f943a007f, in

#9 Object "/usr/local/lib/python3.9/site-packages/cv2/cv2.abi3.so", at 0x7f943b209b, in

#8 Object "/usr/local/lib/python3.9/site-packages/cv2/cv2.abi3.so", at 0x7f943a5d37, in

#7 Object "/usr/local/lib/python3.9/site-packages/cv2/../opencv_python.libs/libQt5Widgets-b1296c1e.so.5.15.0", at 0x7f917a3b03, in QtOpenCVPython::QApplicationPrivate::init()

#6 Object "/usr/local/lib/python3.9/site-packages/cv2/../opencv_python.libs/libQt5Gui-a45894d1.so.5.15.0", at 0x7f90ee5a77, in QtOpenCVPython::QGuiApplicationPrivate::init()

#5 Object "/usr/local/lib/python3.9/site-packages/cv2/../opencv_python.libs/libQt5Core-9e162752.so.5.15.0", at 0x7f908b70ff, in QtOpenCVPython::QCoreApplicationPrivate::init()

#4 Object "/usr/local/lib/python3.9/site-packages/cv2/../opencv_python.libs/libQt5Gui-a45894d1.so.5.15.0", at 0x7f90ee2e07, in QtOpenCVPython::QGuiApplicationPrivate::createEventDispatcher()

#3 Object "/usr/local/lib/python3.9/site-packages/cv2/../opencv_python.libs/libQt5Gui-a45894d1.so.5.15.0", at 0x7f90ee2963, in QtOpenCVPython::QGuiApplicationPrivate::createPlatformIntegration()

#2 Object "/usr/local/lib/python3.9/site-packages/cv2/../opencv_python.libs/libQt5Core-9e162752.so.5.15.0", at 0x7f906b813b, in QtOpenCVPython::QMessageLogger::fatal(char const*, ...) const

#1 Object "/lib/aarch64-linux-gnu/libc.so.6", at 0x7f9f814a9f, in abort

#0 Object "/lib/aarch64-linux-gnu/libc.so.6", at 0x7f9f827eac, in gsignal

Aborted (Signal sent by tkill() 1 0)

    Hi jakaskerl

    When you mean the dependencies you mean the python file named install_requirements.py ? If so, I just got the next error

    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

    rosinstall-generator 0.1.23 requires catkin_pkg>=0.1.28, which is not installed.

    rosinstall-generator 0.1.23 requires rosdistro>=0.7.3, which is not installed.

    rosinstall-generator 0.1.23 requires rospkg, which is not installed.

    But I think is because it need ros 1 and I am using ros 2. Now, if you refer to the command sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash that installation was fine.