docker ubuntu 환경에서 cv2.imshow 하려는데 다음과 같은 오류가 나왔다.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/opt/conda/lib/python3.10/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.
해결 방법
apt-get update
apt-get install -y qt5-default libxcb-xinerama0-dev
(ubuntu 에서는 pqqt 5.14.2 version 에서 성공) 5.15. 이상은 호환이 안된단다..
레퍼런스
https://github.com/ultralytics/ultralytics/issues/882
WARNING Environment does not support cv2.imshow() or PIL Image.show() · Issue #882 · ultralytics/ultralytics
Search before asking I have searched the YOLOv8 issues and discussions and found no similar questions. Question I'm running a simple code below for segmentation (without training) and prediction us...
github.com
https://tmdhhey.tistory.com/81
[Python] 에러 해결 Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wa
Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl. plt.imshow()를 실행하는 와중에 다음과 같은 오류가 발생하였습니다.
tmdhhey.tistory.com
댓글