Error In Pygame "hello World" Program Mac Os 10.8
I am running Pygame in Mountain Lion. I think it is all installed correctly as I can import the module without any errors. When I try and run a very simple program I get an excepti
Solution 1:
It may be that the SDL video driver is not initialized properly. First make sure pygame.init()
returns (6,0)
. This should tell you if everything is initialized properly. If not, you can check what video driver it is using pygame.display.get_driver()
. If it is not using the right driver for your machine, you can change it by setting the environment variable os.environ['SDL_VIDEODRIVER']=
to one of the following x11, dga, fbcon, directfb, ggi, vgl, svgalib, aalib
(from pygame documentation), depending on the drivers available.
Have a look at pygame FAQ on how to change the video driver.
Post a Comment for "Error In Pygame "hello World" Program Mac Os 10.8"