python - Pygame error, I have no clue what's happening -
i'm attempting pygame 1.9.2 python 3.4.3, , giving me error don't understand @ all. code basic hello world:
import sys import pygame pygame.locals import * pygame.init() displaysurf = pygame.display.set_mode((400, 300)) pygame.display.set_caption('hello world!') while true: event in pygame.event.get(): if event.type == quit: pygame.quit() sys.exit() pygame.display.update()
here's error i'm getting:
2015-03-16 22:41:23.073 python[71068:8424090] *** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'error (1000) creating cgswindow on line 281' *** first throw call stack: ( 0 corefoundation 0x00007fff8c69364c __exceptionpreprocess + 172 1 libobjc.a.dylib 0x00007fff93ede6de objc_exception_throw + 43 2 corefoundation 0x00007fff8c6934fd +[nsexception raise:format:] + 205 3 appkit 0x00007fff8a1769dd _nscreatewindowwithopaqueshape2 + 1417 4 appkit 0x00007fff8a174d3c -[nswindow _commonawake] + 1808 5 appkit 0x00007fff8a082ee0 -[nswindow _commoninitframe:stylemask:backing:defer:] + 864 6 appkit 0x00007fff8a08254c -[nswindow _initcontent:stylemask:backing:defer:contentview:] + 1477 7 appkit 0x00007fff8a081f7a -[nswindow initwithcontentrect:stylemask:backing:defer:] + 45 8 libsdl-1.2.0.dylib 0x00000001020af0f4 -[sdl_quartzwindow initwithcontentrect:stylemask:backing:defer:] + 279 9 libsdl-1.2.0.dylib 0x00000001020aca6a qz_setvideomode + 1172 10 libsdl-1.2.0.dylib 0x00000001020a3dfa sdl_setvideomode + 907 11 display.so 0x0000000102108667 set_mode + 263 12 python 0x00000001000e4745 pyeval_evalframeex + 29589 13 python 0x00000001000e604d pyeval_evalcodeex + 2349 14 python 0x00000001000e610f pyeval_evalcode + 63 15 python 0x000000010011064e pyrun_fileexflags + 206 16 python 0x00000001001109fd pyrun_simplefileexflags + 717 17 python 0x00000001001281be py_main + 3262 18 python 0x0000000100000e32 python + 3634 19 python 0x0000000100000c84 python + 3204 ) libc++abi.dylib: terminating uncaught exception of type nsexception
Comments
Post a Comment