-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This application failed to start because no Qt platform plugin could be initialized #1220
Comments
I fixed it. |
was able to work around this using this answer: NVlabs/instant-ngp#300 (comment) |
I was facing the same issue. Turns out in my case, python 3.9 was causing this conflict. commands: |
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. |
solved my issue. |
It works for me in a conda env |
Use brew, which avoids these errors. On Ubuntu brew works. brew install pyqt
brew install wkentaro/labelme/labelme # command line interface |
|
worked for me to solve anaconda-navigator launch issue! thanks!! |
that didn't work but |
New system ubuntu 20.04, first time installing labelImg with a bug: Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb. 已放弃 (核心已转储) |
This problem solved when I install newer PyQt5, PyQt5-Qt5:
Tested on Python 3.9.16 and labelme 5.6.0 |
Ok, this took me a while. None of the solutions here fully worked for me, so a summary of what I had to do, based on previous comments. I am on Ubuntu 24.04.2, with Miniconda 25.1.1. I started a brand new conda environment with the python version 3.10.6 (as suggested by @a-pijpaert).
Installed opencv and pyqt using pip3. Then installed labelme (also with pip3).
Then, following @bryanbocao 's advice:
Then install opencv headless (for good measure): Make sure to remove "CONDA_HOME/envs/myenv/lib/python3.10/site-packages/cv2/qt/plugins" (as @haithienld suggested). In this thread they say that this will break OpenCV for some applications, that's why I thought using the headless version may be worth a try. Anyway, in my case I am using this environment just for labelme. As per here do: And, as per here, add the code between the dashed lines to "CONDA_HOME/envs/labeling/lib/python3.10/site-packages/labelme/app.py"
After that, it all worked for me. I'm not 100% sure all the steps are necessary, but they are what led me to here. In summary, and in case everything else fails, these are the versions which appear in my conda environment where it now works. Note that all of them were installed with pip, not with conda:
The numpy version is from an old attempt (I was having a separate issue where labelme was complaining and required numpy<2.0, I leave it here just in case some else has the same issue), but after replicating my own steps in a new environment I have numpy==2.2.3 without issue. |
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
The text was updated successfully, but these errors were encountered: