[Pythonmac-SIG] Leopard PyObjc & Quartz

Uliano Guerrini guerrini.uliano at gmail.com
Tue Nov 6 14:40:10 CET 2007


Hello,

If I run the Examples in /Developer/Examples/Python/PyObjc/Quartz/...  
building them from terminal with py2app the work as expected.
If I create a new project in Xcode with the any template Cocoa Python  
Application and add in any file a line with

import Quartz

then the applicatons stops working (it hangs jumping in the dock) and  
I can read in the console

[Session started at 2007-11-06 14:35:27 +0100.]
_RegisterApplication(), FAILED TO establish the default connection to  
the WindowServer, _CGSDefaultConnection() is NULL.
2007-11-06 14:35:28.430 poppo[864:10b] *** -[NSRecursiveLock unlock]:  
lock (<NSRecursiveLock: 0x1f8a150> '(null)') unlocked when not locked
2007-11-06 14:35:28.431 poppo[864:10b] *** Break on _NSLockError() to  
debug.
2007-11-06 14:35:28.433 poppo[864:10b] *** -[NSRecursiveLock unlock]:  
lock (<NSRecursiveLock: 0x1f8a150> '(null)') unlocked when not locked
2007-11-06 14:35:28.434 poppo[864:10b] *** Break on _NSLockError() to  
debug.
2007-11-06 14:35:28.439 poppo[864:10b] *** -[NSRecursiveLock unlock]:  
lock (<NSRecursiveLock: 0x1f8a150> '(null)') unlocked when not locked
2007-11-06 14:35:28.439 poppo[864:10b] *** Break on _NSLockError() to  
debug.
2007-11-06 14:35:28.443 poppo[864:10b]  
NSInternalInconsistencyException - Error (1002) creating CGSWindow
2007-11-06 14:35:28.447 poppo[864:10b] *** -[NSRecursiveLock unlock]:  
lock (<NSRecursiveLock: 0x1f8a150> '(null)') unlocked when not locked
2007-11-06 14:35:28.447 poppo[864:10b] *** Break on _NSLockError() to  
debug.
2007-11-06 14:35:28.449 poppo[864:10b] *** -[NSRecursiveLock unlock]:  
lock (<NSRecursiveLock: 0x1f8a150> '(null)') unlocked when not locked
2007-11-06 14:35:28.449 poppo[864:10b] *** Break on _NSLockError() to  
debug.
2007-11-06 14:35:28.450 poppo[864:10b] *** -[NSRecursiveLock unlock]:  
lock (<NSRecursiveLock: 0x1f8a150> '(null)') unlocked when not locked
2007-11-06 14:35:28.450 poppo[864:10b] *** Break on _NSLockError() to  
debug.
2007-11-06 14:35:28.451 poppo[864:10b] *** -[NSRecursiveLock unlock]:  
lock (<NSRecursiveLock: 0x1f8a150> '(null)') unlocked when not locked
2007-11-06 14:35:28.452 poppo[864:10b] *** Break on _NSLockError() to  
debug.

How am I supposed to use Quartz with pyobjc? (if it is possible within  
xcode)

Uliano




More information about the Pythonmac-SIG mailing list