I just bought an M1 MacBook Air today for coding a pygame project, but at very beginning I had an issue with pygame video system. it won't initialize pygame window. The following code snippet works in PC, but M1 Mac just won't initialize it. the error message I got is "pygame error: video system not initialize"
I am not sure if this issue is just for M1 Mac or it is an issue for all Mac users. Does anyone know the answer and solution for this error?
Thank you very much!
import pygame
pygame.init()
screen = pygame.display.set_mode((800, 600))
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.quit():
run = False