반응형
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
https://tmdhhey.tistory.com/81
반응형
댓글