depthai: [BUG] {Error running python3 depthai_demo.py}

Hey guys,

My Oak-D Lite just arrived. I wanted to test it with depthai. What I did is this:

git clone https://github.com/luxonis/depthai.git
cd depthai
python3 install_requirements.py

Installation seemed to work without errors but when I executed this: python3 depthai_demo.py

I get the following error. Does anyone know how to fix it or why this error occured?

 python3 depthai_demo.py
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Using depthai module from:  /home/falke/.local/lib/python3.6/site-packages/depthai.cpython-36m-x86_64-linux-gnu.so
Depthai version installed:  2.13.3.0
QObject::moveToThread: Current thread (0x37e0aa0) is not the object's thread (0x3795bd0).
Cannot move to target thread (0x37e0aa0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/falke/.local/lib/python3.6/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, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

Aborted (core dumped)

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

yes, its 18.04

python3 depthai_demo.py -gt cv does work. I guess I need to live with it for now. Thanks!

Hey @VanDavv your suggestion worked for me. The gui opens 😃 Some core dumbs occur from time to time, but other than that it seems to work. thanks!

Hi. I have the same problem under Ubuntu 20.04:

(oak-d) luis@ryzenLinux:/media/linuxDev/Oak-D/depthai(main)$ python3 depthai_demo.py 
Using depthai module from:  /media/linuxDev/envs/oak-d/lib/python3.8/site-packages/depthai.cpython-38-x86_64-linux-gnu.so
Depthai version installed:  2.13.3.0
QObject::moveToThread: Current thread (0x22d2060) is not the object's thread (0x21fbc70).
Cannot move to target thread (0x22d2060)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/media/linuxDev/envs/oak-d/lib/python3.8/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, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

Aborted (core dumped)

Running with the CV GUI works fine (python3 depthai_demo.py -gt cv)