yarppg icon indicating copy to clipboard operation
yarppg copied to clipboard

core dumped error in python3.11

Open trappedinspacetime opened this issue 1 year ago • 3 comments

After I installed all the requirements, I get the following error:

      python -m yarppg
      QObject::moveToThread: Current thread (0x64e439c434f0) is not the object's thread (0x64e43c4bffd0).
      Cannot move to target thread (0x64e439c434f0)
      
      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/kenn/.pyenv/versions/3.11-dev/lib/python3.11/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)

trappedinspacetime avatar Jul 15 '24 16:07 trappedinspacetime

    pip install opencv-python-headless

fixed it.

trappedinspacetime avatar Jul 15 '24 16:07 trappedinspacetime

thank you for reporting this. I see no issues with 3.11 on windows, but on Ubuntu through WSL i get the same issue. For me, however, installing opencv-python-headless does not solve the error. Which OS are you on?

I'm afraid there are some major dependency issues with some of the requirements. Since I last checked, MediaPipe has seen an overhaul, OpenCV moved to Qt6 for newer versions...

I will look into it in the next weeks. This may motivate to continue an finalize some housekeeping that I've been meaning to finalize for a long time now.

SamProell avatar Jul 15 '24 18:07 SamProell

@SamProell I am sorry, I've just seen your post. I am on Ubuntu 22.04 Mate Desktop.

trappedinspacetime avatar Jul 23 '24 16:07 trappedinspacetime