PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
43.66k stars 7.78k forks source link

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. #3305

Closed Harrisonyong closed 2 years ago

Harrisonyong commented 3 years ago

Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/bin/platforms" ... loaded library "/usr/local/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" qt.qpa.xcb: could not connect to display 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.


C++ Traceback (most recent call last):

0 paddle::framework::SignalHandle(char const*, int) 1 paddle::platform::GetCurrentTraceBackString[abi:cxx11]()


Error Message Summary:

FatalError: Process abort signal is detected by the operating system. [TimeInfo: Aborted at 1625825525 (unix time) try "date -d @1625825525" if you are using GNU date ] [SignalInfo: SIGABRT (@0x1d) received by PID 29 (TID 0x7f60723c8080) from PID 29 ]

Harrisonyong commented 3 years ago

when I use python3 PPOCRLabel.py to start it, I meet this question as I description. I have checked all the qt libary have been perpared. So, what's the reason caused this bug?

Evezerest commented 3 years ago

Do you run PPOCRLabel on Linux? What version of qt have you installed?

Fanky186 commented 3 years ago

@Evezerest @Harrisonyong Hi, I have the same problem, So how do we solve this?Please help me

mohandeepzumen commented 2 years ago

@Evezerest my qt version is qt5, I used pip install PyQt5

mohandeepzumen commented 2 years ago

Just resolved it. Install opencv in the same env where you installed paddle paddle. use "pip install opencv-python==4.2.0.32". Doing this resolved for me

liguiyuan commented 2 years ago

I have solved this problem, reduce the opencv-python version : pip3 install --upgrade opencv-python==4.2.0.32

paddle-bot-old[bot] commented 2 years ago

Since you haven\'t replied for more than 3 months, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first. 由于您超过三个月未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。