[cairo] PyCairo on Mac OS X
Elver Loho
elver.loho at gmail.com
Sat Apr 17 15:54:16 PDT 2010
Hi!
I'm trying to install PyCairo on Mac OS X. Or, rather, I've done it.
But it doesn't work.
I've installed Cairo with Mac Ports. I've installed PyCairo with easy_install.
This is what happens when I try to use it:
YellowTracksuit:~ elver$ python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cairo
>>> dir(cairo)
['__builtins__', '__doc__', '__file__', '__loader__', '__name__',
'__package__', '__path__']
>>> surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 256, 256)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ImageSurface'
There be nothing there! What could be wrong and how do I fix it?
Best,
Elver
elver.loho at gmail.com
+372 5661 6933
http://elver.wordpress.com/
skype: elver.loho
More information about the cairo
mailing list