[Pyobjc-dev] Python2.6.4, Pyobjc 2.2, Quartz, Snow Leopard
Brought to you by:
ronaldoussoren
From: Erik v. B. <er...@le...> - 2010-01-15 10:34:28
|
Hi all, I have a project in which an OSX machine renders images in response to http calls. It runs the python.org 2.6.4, pyobjc 2.2, twisted 9.0.0. I can use Quartz to make a drawing context, draw simple paths, export as PNG. This works. I also need to draw a couple bitmap images, so I want to use more functionality from Quartz. The enclosed test script works when executed in the terminal. Exactly the same script crashes hard when called as part of a twisted process. > [eBook:trunk/lettersetter/Quartz LS Debug] erik% python /usr/bin/ > twistd -y twisted.quartz.test.py --pidfile quartztestpid.txt -- > logfile quartztest.log > versions: > python version: 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) > [GCC 4.0.1 (Apple Inc. build 5493)] > pyobjc version: 2.2 > twisted.web version: 9.0.0 > > dry run: > saved test image at /Users/erik/Develop/lettersetter/trunk/ > lettersetter/Quartz LS Debug/test.png > > booting twisted app > done Then I open a browser at http://127.0.0.1:8081/ kerboom! My test script requires a png file to be nearby. Any help or pointers are kindly appreciated. Erik |