Yolov8: Error when trying to display simple detection

The below code was working earlier, suddenly it stopped showing the video display.
It looks like it is working well except for the video show.

from ultralytics import YOLO
model = YOLO(‘yolov8m.pt’)
results = model(source=‘gymnasts.mp4’,show=True,tracker=“bytetrack.yaml”)

The warning is:

WARNING Environment does not support cv2.imshow() or PIL Image.show()
OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1272: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function ‘cvShowImage’

The OS is windows10, using VScode