DataLab-Platform / DataLab

Open-source Platform for Scientific and Technical Data Processing and Visualization
https://datalab-platform.com
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

ArchLinux: `qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found` #13

Closed AdrianGrolleau closed 8 months ago

AdrianGrolleau commented 8 months ago

Describe the bug Impossible to launch DataLab. Error message :

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. QObject::moveToThread: Current thread (0x2a5c610) is not the object's thread (0x3eac870). Cannot move to target thread (0x2a5c610)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/.../Python/Anaconda/anaconda3/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, minimal, minimalegl, offscreen, vnc, webgl.

Abandon (core dumped)

To Reproduce Launch DataLab with cdl command line immediately after installation.

Expected behavior Application launch normally

Screenshots bug_datalab

Installation information

Additional context PC specs :

PierreRaybaut commented 8 months ago

Thanks for the feedback and for trying to play with DataLab!

This is a known behaviour related to one of DataLab dependencies, namely opencv-python. It can be solved by installing the right package dependencies (libxcb related packages).

But could you try the following (much simpler solution that could benefit to other users of DataLab):

pip uninstall opencv-python
pip install opencv-python-headless
AdrianGrolleau commented 8 months ago

Hello Pierre,

Unfortunately I am on vacations since 2 hours, and I left my computer at the office. I'll be back on January 15, I'll try the solution then.

Thank you for the quick reply, I am waiting to test DataLab as it seems very promising.

Regards

PierreRaybaut commented 8 months ago

Thanks Adrian. Please do no hesitate to contact me when you have the opportunity to test this.

In the meantime, enjoy your vacation! 🏖️