[cairo] Cairo and Python mismatch.

Dave Coventry dgcoventry at gmail.com
Thu Feb 2 23:26:45 PST 2012


I'm attempting to run a python script in Blender (blender3d.org) which is
generating an error

~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~
 File
"/home/dave/Apps/blender-2.49b-linux-glibc236-py26-x86_64/.blender/scripts/pantographLib.py",
line 1941, in Pen
   MITER = cairo.LINE_JOIN_MITER
NameError: name 'cairo' is not defined
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~

When I type "import cairo" from within the blender python console, I get
the following error (which I am presuming) is why the Cairo libraries are
not being loaded.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~
<type 'exceptions.ImportError'>:
/usr/lib/python2.6/dist-packages/cairo/_cairo.so:  undefined symbol:
PyUnicodeUCS4_AsUTF8String
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~

The machine has three versions of python installed, 2.6 (which is the
version that Blender is using), 2.7 and 3.2.

Presumably, there is an unicode conflict which needs to be resolved.

Can anyone offer any suggestions on resolving this?

Kind regards,

Dave Coventry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120203/71964f06/attachment.html>


More information about the cairo mailing list