oliver-batchelor / multical

Multi-camera calibration using one or more calibration patterns
Other
362 stars 67 forks source link

Problem with running visualization: Could not load the Qt platform plugin "xcb" in "" even though it was found. #23

Closed decamargo10 closed 2 years ago

decamargo10 commented 2 years ago

Hello, I did the calibration and everything seems to work fine. However I can't get the visualization to work. I installed multical[visualization] but when I run it, I get the following error:

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

I tried uninstalling and reinstalling all kind of packages but the error remains. Anybody who experienced something similar or who has an idea how I could fix this? OS: Ubuntu 20.04.

Thank you in advance!

decamargo10 commented 2 years ago

Cleaning up my env and reinstalling qt5 using: sudo apt-get install qt5-default fixed it for me.

oliver-batchelor commented 1 year ago

Hi Lionel,

What platform/environment are you using?

I've seen this one many times. It's related to conflicts between opencv and qt, (because opencv includes a version of qt for it's gui stuff) and is usually really annoying to sort out! One way which usually works is to use a separate environment (e.g. conda or virtualenv) which uses python-opencv-headless (instead of python-opencv).

Oliver

On Fri, Mar 11, 2022 at 8:36 PM Lionel Burg @.***> wrote:

Hello, I did the calibration and everything seems to work fine. However I can't get the visualization to work. I installed multical[visualization] but when I run it, I get the following error:

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

I tried uninstalling and reinstalling all kind of packages but the error remains. Anybody who experienced something similar or who has an idea how I could fix this?

Thank you in advance!

— Reply to this email directly, view it on GitHub https://github.com/oliver-batchelor/multical/issues/23, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITRZPLRPJ3YHEAZ43KVI3U7LZWNANCNFSM5QO23JIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>