On Apple's Python in 10.10, Homebrew Python in 10.10, and Apple's Python in 10.11, the Quartz module's
CGBeginDisplayConfiguration call exits prematurely:
>>> (error, config_ref) = Quartz.CGBeginDisplayConfiguration(None) Assertion failed: (did_initialize), function CGS_REQUIRE_INIT, file Desktop/CGInitialization.c, line 40. Abort trap: 6
And then the interpreter exits with code 134.
I believe I'm making the call correctly, but it always results in this error across multiple devices. Any ideas?