CoreGraphics wrapped by Apple using the built-in Python (Python 2.3 in Tiger). The binding itself is binary and proprietary, so it can only be used with the built-in Python.
NodeBox, which appears to be a clone of DrawBot (which was inspired by Processing, etc.) has a library for CoreImage. Robert Kern wrote a wrapper for CoreGraphics which is part of Kiva (http://code.enthought.com/kiva/). He split it off as a standalone package, but the URL I have for that no longer works (problems at Starship Python). I have a copy of an early version (version 0.0.0) which I can send you if you like. I believe it uses Pyrex to build the extension. HTH --Dethe On 7-Jan-07, at 10:39 AM, Robert Love wrote: > Back in 2005 I had a python script that did some simple image > manipulation with CoreGraphics. Since then I have upgraded to python > 2.5 and the script no longer works. I think you all tried to > explain this to me when I upgraded but didn't follow what was being > said. > > I'm running a PPC machine with 10.4. > > which python > /Library/Frameworks/Python.framework/Versions/Current/bin/python > > and > > ls -l /Library/Frameworks/Python.framework/Versions/Current/bin/ > python > lrwxr-xr-x 1 root admin 9 Sep 22 23:58 /Library/Frameworks/ > Python.framework/Versions/Current/bin/python -> python2.5 > > running the script > > python mine.py arguments > Traceback (most recent call last): > File "mine.py", line 8, in <module> > from CoreGraphics import * > ImportError: No module named CoreGraphics > > If I use > > python2.3 mine.py arguments > > it works as expected. > > which python2.3 > /usr/bin/python2.3 > > > Is there a way to use CoreGraphics with python 2.5? Do I need to > install more? Link libraries? > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig "There's a little bit of God in every truck driver and a little bit of truck driver in every God." -- Blayne Horner _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig