cellpose
cellpose copied to clipboard
[INSTALL] Could not load the Qt platform plugin "xcb" in "" even though it was found.
Install problem The app wouldn't start, even though I uninstalled and reinstalled it a few times to validate my steps.
Environment info
(cellpose) [barc@cn113 ~]$ conda list
# packages in environment at /home/labs/mayalab/barc/.conda/envs/cellpose:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
ca-certificates 2024.3.11 h06a4308_0
cachetools 5.3.3 pypi_0 pypi
cellpose 3.0.7 pypi_0 pypi
certifi 2024.2.2 pypi_0 pypi
charset-normalizer 3.3.2 pypi_0 pypi
fastremap 1.14.1 pypi_0 pypi
filelock 3.13.4 pypi_0 pypi
fsspec 2024.3.1 pypi_0 pypi
google-api-core 2.18.0 pypi_0 pypi
google-auth 2.29.0 pypi_0 pypi
google-cloud-core 2.4.1 pypi_0 pypi
google-cloud-storage 2.16.0 pypi_0 pypi
google-crc32c 1.5.0 pypi_0 pypi
google-resumable-media 2.7.0 pypi_0 pypi
googleapis-common-protos 1.63.0 pypi_0 pypi
idna 3.7 pypi_0 pypi
imagecodecs 2023.3.16 pypi_0 pypi
importlib-metadata 7.1.0 pypi_0 pypi
jinja2 3.1.3 pypi_0 pypi
ld_impl_linux-64 2.38 h1181459_1
libffi 3.4.4 h6a678d5_0
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libstdcxx-ng 11.2.0 h1234567_1
llvmlite 0.41.1 pypi_0 pypi
markupsafe 2.1.5 pypi_0 pypi
mpmath 1.3.0 pypi_0 pypi
natsort 8.4.0 pypi_0 pypi
ncurses 6.4 h6a678d5_0
networkx 3.1 pypi_0 pypi
numba 0.58.1 pypi_0 pypi
numpy 1.24.4 pypi_0 pypi
nvidia-cublas-cu12 12.1.3.1 pypi_0 pypi
nvidia-cuda-cupti-cu12 12.1.105 pypi_0 pypi
nvidia-cuda-nvrtc-cu12 12.1.105 pypi_0 pypi
nvidia-cuda-runtime-cu12 12.1.105 pypi_0 pypi
nvidia-cudnn-cu12 8.9.2.26 pypi_0 pypi
nvidia-cufft-cu12 11.0.2.54 pypi_0 pypi
nvidia-curand-cu12 10.3.2.106 pypi_0 pypi
nvidia-cusolver-cu12 11.4.5.107 pypi_0 pypi
nvidia-cusparse-cu12 12.1.0.106 pypi_0 pypi
nvidia-nccl-cu12 2.20.5 pypi_0 pypi
nvidia-nvjitlink-cu12 12.4.127 pypi_0 pypi
nvidia-nvtx-cu12 12.1.105 pypi_0 pypi
opencv-python-headless 4.9.0.80 pypi_0 pypi
openssl 3.0.13 h7f8727e_0
packaging 24.0 pypi_0 pypi
pip 23.3.1 py38h06a4308_0
proto-plus 1.23.0 pypi_0 pypi
protobuf 4.25.3 pypi_0 pypi
pyasn1 0.6.0 pypi_0 pypi
pyasn1-modules 0.4.0 pypi_0 pypi
pygments 2.17.2 pypi_0 pypi
pyqt6 6.7.0 pypi_0 pypi
pyqt6-qt6 6.7.0 pypi_0 pypi
pyqt6-sip 13.6.0 pypi_0 pypi
pyqtgraph 0.13.3 pypi_0 pypi
python 3.8.19 h955ad1f_0
qtpy 2.4.1 pypi_0 pypi
readline 8.2 h5eee18b_0
requests 2.31.0 pypi_0 pypi
roifile 2023.5.12 pypi_0 pypi
rsa 4.9 pypi_0 pypi
scipy 1.10.1 pypi_0 pypi
setuptools 68.2.2 py38h06a4308_0
sqlite 3.41.2 h5eee18b_0
superqt 0.6.4 pypi_0 pypi
sympy 1.12 pypi_0 pypi
tifffile 2023.7.10 pypi_0 pypi
tk 8.6.12 h1ccaba5_0
torch 2.3.0 pypi_0 pypi
tqdm 4.66.2 pypi_0 pypi
triton 2.3.0 pypi_0 pypi
typing-extensions 4.11.0 pypi_0 pypi
urllib3 2.2.1 pypi_0 pypi
wheel 0.41.2 py38h06a4308_0
xz 5.4.6 h5eee18b_0
zipp 3.18.1 pypi_0 pypi
zlib 1.2.13 h5eee18b_0
(cellpose) [barc@cn113 ~]$
Run log
(cellpose) [barc@cn113 ~]$ python -m cellpose
2024-04-28 19:41:30,061 [INFO] WRITING LOG OUTPUT TO /home/labs/mayalab/barc/.cellpose/run.log
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.
Aborted (core dumped)
Try running this command while still in the cellpose conda environment:
sudo apt install libxcb-cursor0
I was also getting the same issue but resolved it with the above library install.
Hope it helps.
Kaushik
thanks Kaushik, I'll add this to our install issues, closing this issue due to inactivity