labelme icon indicating copy to clipboard operation
labelme copied to clipboard

This application failed to start because no Qt platform plugin could be initialized

Open haithienld opened this issue 1 year ago • 9 comments

Provide environment information

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

What OS are you using?

Ubuntu 20.04

Describe the Bug

When I run labelme Folder. The bug happens

Expected Behavior

No response

To Reproduce

No response

haithienld avatar Nov 29 '22 02:11 haithienld

I fixed it. After deleting all in the /home/pidl/.local/lib/python3.9/site-packages/cv2/qt/plugins folder that the bug still happens. Please install. (with opencv-4.4) sudo apt-get install qt5-default

haithienld avatar Nov 29 '22 02:11 haithienld

was able to work around this using this answer: https://github.com/NVlabs/instant-ngp/discussions/300#discussioncomment-3179213

amaizr avatar Jan 03 '23 19:01 amaizr

I was facing the same issue. Turns out in my case, python 3.9 was causing this conflict. I managed to solve this by creating a new environment with python 3.8.

commands: conda create -n myenv python=3.8.0 conda activate myenv pip3 install opencv-python==4.2.0.34

kaiesalmahmud avatar Mar 13 '23 06:03 kaiesalmahmud

For me it worked to downgrade PyQt5 to version 5.13.2.

I am on Python version 3.10.6 and opencv-python version 4.7.0.72.

a-pipi avatar Mar 13 '23 08:03 a-pipi

pip install --upgrade pyqt5_tools

solved my issue. Reference https://github.com/fmjohnson97/habitat_heuristic/issues/2#issuecomment-1751440118

bryanbocao avatar Oct 06 '23 21:10 bryanbocao

pip install opencv-python-headless

It works for me in a conda env

kimkimyoung avatar Dec 21 '23 07:12 kimkimyoung

Use brew, which avoids these errors. On Ubuntu brew works.

brew install pyqt 
brew install wkentaro/labelme/labelme  # command line interface

sc0v0ne avatar Dec 21 '23 11:12 sc0v0ne

pip install opencv-python-headless

It works for me in a conda env also sloved my issue, thanks.

Jie-Huangi avatar Jan 03 '24 12:01 Jie-Huangi

pip install opencv-python-headless

It works for me in a conda env

worked for me to solve anaconda-navigator launch issue! thanks!!

Satyam-Vy avatar Jun 08 '24 18:06 Satyam-Vy

pip install opencv-python-headless It works for me in a conda env

worked for me to solve anaconda-navigator launch issue! thanks!!

that didn't work but upgrading openv did the job for me pip install opencv-python --upgrade

mzohaibnasir avatar Jul 23 '24 08:07 mzohaibnasir