[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame from OS X command line




On Aug 3, 2005, at 7:59 PM, Ben Willmore wrote:

Hi Bob,


The actual problem is that you're spending too much time before creating the screen... your fix works around that problem by calling NSApplicationLoad on import, but it breaks the detection that goes on later in pygame.macosx to see if pygame is already running in the context of an application and will break other things.

Try this instead, with no patch:
python -i -c "import pygame; pygame.init()"


Hmm, interesting. But your solution doesn't work for me:

(removed patch)
[ben@assam pygame] $ python2.4 -i -c "import pygame; pygame.init()"
>>> screen = pygame.display.set_mode((468, 60))
2005-08-03 22:55:45.478 python2.4[5089] *** Uncaught exception: <NSInternalInconsistencyException> Error (1002) creating CGSWindow

What version of Mac OS X, PyObjC, and pygame is this?

-bob