cellpose icon indicating copy to clipboard operation
cellpose copied to clipboard

Cellpose 2.0 install error

Open jnmark opened this issue 3 years ago • 11 comments

Trying to do a fresh install of cellpose as per this tutorial video: https://www.youtube.com/watch?v=5qANHWoubZU

I tried creating a new conda environment and installing cellpose, however, I get an error:

(cellpose) [email protected]% python -m cellpose
2022-05-24 08:17:21,863 [INFO] WRITING LOG OUTPUT TO /home/jnmark/.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)

I saw a previous response saying this could be a result of trying to install outside of conda, but that's not applicable in my case. Any help will be appreciated!

jnmark avatar May 24 '22 12:05 jnmark

Hello, could you please help me with this? I am really struggling with this install despite multiple attempts.

jnmark avatar Jun 30 '22 18:06 jnmark

can you try the instructions here? it seems like the latest opencv may be conflicting? https://askubuntu.com/questions/1310286/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it

but if you did a clean environment, then there shouldn't be any conflicts.

another solution I found with googling was sudo apt-get install libxcb-xinerama0

(https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/24)

carsen-stringer avatar Jul 03 '22 13:07 carsen-stringer

did any of this work? closing due to inactivity

carsen-stringer avatar Aug 11 '22 21:08 carsen-stringer

I had this same issue. sudo apt-get install libxcb-xinerama0 fixed this for me. Cheers!

JackEverson avatar May 17 '23 08:05 JackEverson

@mrariden can you please add this to the documentation?

carsen-stringer avatar May 17 '23 11:05 carsen-stringer

I am getting the same error message. According to the above proposed solutions, quoted here

can you try the instructions here? it seems like the latest opencv may be conflicting? https://askubuntu.com/questions/1310286/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it

but if you did a clean environment, then there shouldn't be any conflicts.

another solution I found with googling was sudo apt-get install libxcb-xinerama0

(https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/24)

I have tried re-installing opencv but it didn't solve the issue. I installed cellpose in HPC server and I am not a sudo user, so I cannot try the second option. Is there a way to install cellpose in HPC sever and use the GUI?

yemanbh avatar Aug 25 '23 08:08 yemanbh

I had this same issue. sudo apt-get install libxcb-xinerama0 fixed this for me. Cheers!

Although this doesn't fix my issue for the exact same error, running "conda install -c conda-forge pyqt" solves my issue.

willey2020 avatar Oct 08 '23 17:10 willey2020

Although this doesn't fix my issue for the exact same error, running "conda install -c conda-forge pyqt" solves my issue.

This was the fix that worked on my end. Thanks!

zackramjan avatar Nov 28 '23 17:11 zackramjan

The issue persists for me. Console: platform: linux python version: 3.8.5 torch version: 2.1.2

Reinstalling open-cv, sudo apt-get install libxcb-xinerama0, and conda install -c conda-forge pyqt all do not solve my issue.

postnubilaphoebus avatar Jan 05 '24 16:01 postnubilaphoebus

I solved it through re-installation and trying every step listed here: https://github.com/NVlabs/instant-ngp/discussions/300 Unfortunately, it is not clear to me which step worked. You may try many.

postnubilaphoebus avatar Jan 05 '24 16:01 postnubilaphoebus

I am getting an error:

import numpy as np ModuleNotFoundError: No module named 'numpy' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

nikolickk avatar Mar 06 '24 16:03 nikolickk