I want to use OpenCV with python on spyder.
But error occured when I run a simple code.
import cv2
img = cv2.imread('pi.png',0)
cv2.imshow('image', img)
cv2.waitKey(0)
dcv2.destroyAllwindows()
Error
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Reinstalling the application may fix this problem.
The error is occured at this line.
cv2.imshow('image', img)
Details: Ubuntu 14.04(LTS), OpenCV 2.4.13, Spyder 2.3.9(Python 2.7)
Please Tell me in detail what should I do.