joonkeekim / mediar-napari

BSD 3-Clause "New" or "Revised" License
20 stars 1 forks source link

Error: Qt platform plugin "xcb" in "" even though it was found. #4

Open brchn6 opened 8 months ago

brchn6 commented 8 months ago

Hey, you all, In working on Linux remote cluster I followed the instructions in the installation part, and then I submitted bsub missions with GPU:

(mediar-napari) [barc@access4 mediar-napari]$ bsub -q gpu-interactive -gpu num=1:j_exclusive=yes:gmem=8G:gmodel=NVIDIAA40 -R rusage[mem=10000] -R affinity[thread*4] -m hgn_2022_hosts -Is -XF "/bin/bash -l"

when in running

(mediar-napari) [barc@hgn22 mediar-napari]$ napari -w mediar

Im getting:

WARNING: Could not load the Qt platform plugin "xcb" in "" even though it was found.
08:56:47 WARNING Could not load the Qt platform plugin "xcb" in "" even though it was found.
WARNING: 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.

08:56:47 WARNING 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.

Aborted (core dumped)

I tried to reinstall it, but it didn't help.

I had a similar problem in the past in a GUI app that didn't require GPU as a mandatory requirement. The problem was solved when I installed PyQt5 and QtPy independently but in this case the pip install "napari[all]" install both as you can see in the following pip list:

(mediar-napari) [barc@access4 mediar-napari]$ pip list |grep Py*
Package                       Version      Editable project location
Pint                          0.21.1
Pygments                      2.17.2
PyOpenGL                      3.1.7
PyQt5                         5.15.10
PyQt5-Qt5                     5.15.2
PyQt5-sip                     12.13.0
PyWavelets                    1.4.1
PyYAML                        6.0.1
QtPy                          2.4.1

Please help me with this issue. Thanks

macromeer commented 8 months ago

Try uninstalling Napari and then run python -m pip install "napari[pyside2]", cf. https://napari.org/stable/tutorials/fundamentals/installation.html#choosing-a-different-qt-backend