Cairo and Python mismatch.

Dave Coventry <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CACbSWtbC5c2YAX5T1B+0gOU=ZmZNh=yEGzPqBNnpVMZuyjFBUQ@mail.gmail.com>
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

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.