undefined symbol: PyUnicodeUCS4_AsUTF8String

Cov dgcoventry at gmail.com
Sat Feb 4 02:02:28 EST 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 has been compiled against and 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



More information about the Python-list mailing list