Qt: Session management error: Could not open network socket

I looked at a similar post and could not resolve it.  I am getting the error message when using imshow().  The simple code is below:

import cv2 as cv
import numpy as np

pic = cv.imread('WP_20130915_006.jpg')
cv.imshow("help",pic )
 

The error message is:

Qt: Session management error: Could not open network socket

The environment is Linux Mint running PyCharm Professional 2024.1.5 and Python 3.11

Thanks in advance for any help.

James

0
2 comments

Hi Jeacpa , I am wondering if you would see the same error when running this sample code from the system terminal outside of IDE in the same virtual environment? If so, then the issue is most probably not related to IDE.

0

Hi Mikhail, I will give that a try.  I am new to Linux so I will do my best.

 

Best regards,

 

James

0

Please sign in to leave a comment.