Hi @jakaskerl
I did a full reinstall of everything, new clone of repo, new venv, new base python interpreter, did install_requirements.
When running the cam_test it produces the following output:
QObject::moveToThread: Current thread (0x556f262bfb10) is not the object's thread (0x556f26468550).
Cannot move to target thread (0x556f262bfb10)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/jarl/Desktop/Luxonis Fresh/venv/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.
Stack trace (most recent call last):
#28 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#27 Object "python3.8", at 0x556f24a6fc24, in _start
#26 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6f88629e3f, in __libc_start_main
#25 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6f88629d8f, in
#24 Object "python3.8", at 0x556f24a6fd2c, in Py_BytesMain
#23 Object "python3.8", at 0x556f24a7037f, in Py_RunMain
#22 Object "python3.8", at 0x556f2496da79, in PyRun_SimpleFileExFlags
#21 Object "python3.8", at 0x556f2496dca7, in PyRun_FileExFlags
#20 Object "python3.8", at 0x556f24aa4d82, in
#19 Object "python3.8", at 0x556f24aa4de8, in
#18 Object "python3.8", at 0x556f24a948a6, in PyEval_EvalCode
#17 Object "python3.8", at 0x556f24a1fac2, in _PyEval_EvalCodeWithName
#16 Object "python3.8", at 0x556f24a25368, in _PyEval_EvalFrameDefault
#15 Object "python3.8", at 0x556f249ca269, in _PyFunction_Vectorcall
#14 Object "python3.8", at 0x556f24a257fe, in _PyEval_EvalFrameDefault
#13 Object "python3.8", at 0x556f249c9997, in _PyObject_MakeTpCall
#12 Object "python3.8", at 0x556f249fc572, in
#11 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/sip.cpython-38-x86_64-linux-gnu.so", at 0x7f6f7b7f3861, in
#10 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so", at 0x7f6f3648bffa, in
#9 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so", at 0x7f6f3648bf1c, in
#8 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5", at 0x7f6f35967aa8, in QApplicationPrivate::init()
#7 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Gui.so.5", at 0x7f6f3c76accb, in QGuiApplicationPrivate::init()
#6 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Core.so.5", at 0x7f6f3faa4fe2, in QCoreApplicationPrivate::init()
#5 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Gui.so.5", at 0x7f6f3c7682ac, in QGuiApplicationPrivate::createEventDispatcher()
#4 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Gui.so.5", at 0x7f6f3c767f9f, in QGuiApplicationPrivate::createPlatformIntegration()
#3 Object "/home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/PyQt5/Qt5/lib/libQt5Core.so.5", at 0x7f6f3f8929bb, in QMessageLogger::fatal(char const*, ...) const
#2 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6f886287f2, in abort
#1 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6f88642475, in raise
#0 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6f886969fc, in pthread_kill
Aborted (Signal sent by tkill() 46835 1000)
Aborted (core dumped)
I tried to install opencv-python-headless, which then worked, but produced the following error:
Enabled cameras:
rgb : color
left : mono
right : mono
camd : color
DepthAI version: 2.23.0.0
DepthAI path: /home/jarl/Desktop/Luxonis Fresh/venv/lib/python3.8/site-packages/depthai.cpython-38-x86_64-linux-gnu.so
cam_test.py:298: DeprecationWarning: Use constructor taking 'UsbSpeed' instead
with dai.Device(*dai_device_args) as device:
[1844301031A1820E00] [1.2.2] [0.699] [ColorCamera(9)] [error] Camera not detected on socket: 3
[1844301031A1820E00] [1.2.2] [0.700] [ColorCamera(3)] [warning] Unsupported resolution set for detected camera OV9782, needs 800_P or 720_P. Defaulting to 800_P
Connected cameras:
-socket CAM_A : OV9782 1280 x 800 focus:fixed - COLOR MONO
-socket CAM_B : OV9282 1280 x 800 focus:fixed - MONO
-socket CAM_C : OV9282 1280 x 800 focus:fixed - MONO
USB speed: SUPER
IR drivers: [('LM3644', 2, 99)]
Cam: rgb left right camd [host | capture timestamp]
FPS: 0.00| 0.00 0.00| 0.00 0.00| 0.00 0.00| 0.00 Traceback (most recent call last):
File "cam_test.py", line 460, in <module>
key = cv2.waitKey(1)
cv2.error: OpenCV(4.8.1) /io/opencv/modules/highgui/src/window.cpp:1338: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvWaitKey'
(libgtk2.0-dev and pkg-config are both installed and up to date)
Also when installing the requirements, it mentions that
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/jarl/Python-3.8.0/Lib/tkinter/__init__.py", line 36, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
Missing `python3-tk` on the system. Install with `sudo apt install python3-tk`
but also this is installed and up to date, however it keeps mentioning this..
I also tried updating the opencv-contrib-python to latest package, but same error as the first