You already got some replies. But I don't really understand the
above. Do you mean that your script fails on Mac OS X server while it
works when run on Mac OS X client under exactly the same circumstances?
Could you elaborate?
I think that the more likely situation is that on the 'client
machine he is trying things out when he is logged in (thus there is a
Window server available). If you look at the last bit of the error he
is getting you will see this line:
Yes, this sounds obvious, but how can I get around this?
So one of the calls he is making (probably indirectly) on AppKit
needs to create a Window (possibly off-screen) to do some compositing
work, and is failing when it realizes that it can't create windows.
I think it is the following call from the python script:
win = AppKit.NSWindow.alloc()
win.initWithContentRect_styleMask_backing_defer_ (rect,
AppKit.NSBorderlessWindowMask, 2, 0)