Reputation: 103
I was following a tutorial of OpenCV to show an image in a window.
import cv2
img = cv2.imread('lena.jpg')
cv2.imshow('lena', img)
cv2.waitKey(0) & 0xFF
cv2.destroyAllWindows()
I am getting this error.
Qt: Session management error: None of the authentication protocols specified are supported
please help me with this. I am new to ubuntu so I might need an in-depth explanation
Upvotes: 0
Views: 983
Reputation: 2277
You get this error because of a variable called SESSION_MANAGER. You need to unset it. Try this:
import cv2
unset SESSION_MANAGER
img = cv2.imread('lena.jpg')
cv2.imshow('lena', img)
cv2.waitKey(0) & 0xFF
cv2.destroyAllWindows()
If you work with PyCharm IDE, re-launch your program like this:
env -u SESSION_MANAGER pycharm-community
Upvotes: 1