undefined symbol: PyUnicodeUCS4_AsUTF8String

C

Cov

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
 
M

Miki Tebeka

IIRC it means that cairo was compiled against a Python compiled with --enable-unicode=ucs4. But the version of Python you have was not (default is ucs2).

Maybe you can find a different version/packaging of cairo that matches this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top