HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.77k stars 6.31k forks source link

Error with Qt platform plugin "xcb" when start labelImg #630

Closed vovaekb closed 4 years ago

vovaekb commented 4 years ago

I am using Ubuntu 14.04. I have installed labelImg both ways: from source and using pip install. In both cases when start labelImg I get following error:

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.
AnhPC03 commented 4 years ago

@vovaekb Have you try the following yet? Run this first: sudo apt-get update Then run command: sudo apt-get install pyqt5-dev-tools

vovaekb commented 4 years ago

@AnhPC03 Yes, I tried it. I did all steps from guide and this didn't work.

AnhPC03 commented 4 years ago

@vovaekb can you show all errors?

clizarralde commented 4 years ago

In my case the issue was that libxcb-xinerama0 was missing. I've found out after setting the export QT_DEBUG_PLUGINS=1

Something like: https://askubuntu.com/questions/308128/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without

vovaekb commented 4 years ago

In my case the issue was that libxcb-xinerama0 was missing. I've found out after setting the export QT_DEBUG_PLUGINS=1

Something like: https://askubuntu.com/questions/308128/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without

Thank you. I will try this.

lxb1989 commented 4 years ago

I have the same issue, and use 'sudo python3 labelImg.py', it works for me. My os is ubuntu18.04. @vovaekb

vovaekb commented 4 years ago

I have the same issue, and use 'sudo python3 labelImg.py', it works for me. My os is ubuntu18.04. @vovaekb

Thank you very much! It works.

YoungTreezy commented 3 years ago

I have the same issue, and use 'sudo python3 labelImg.py', it works for me. My os is ubuntu18.04. @vovaekb

thank you, I killed 2 days to find a solution