Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

undefined symbol: PyUnicodeUCS4_AsUTF8String

902 views
Skip to first unread message

Cov

unread,
Feb 4, 2012, 2:02:28 AM2/4/12
to
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

Miki Tebeka

unread,
Feb 6, 2012, 1:01:07 PM2/6/12
to
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.
0 new messages