I'm attempting to run a python script in Blender (<a href="http://blender3d.org">blender3d.org</a>) which is generating an error<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~<br> File "/home/dave/Apps/blender-2.49b-linux-glibc236-py26-x86_64/.blender/scripts/pantographLib.py", line 1941, in Pen<br>
MITER = cairo.LINE_JOIN_MITER<br>NameError: name 'cairo' is not defined<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~<div><br></div><div>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.</div>
<div><br></div><div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~<br><type 'exceptions.ImportError'>: /usr/lib/python2.6/dist-packages/cairo/_cairo.so: undefined symbol: PyUnicodeUCS4_AsUTF8String<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div><br></div><div>The machine has three versions of python installed, 2.6 (which is the version that Blender is using), 2.7 and 3.2.</div><div><br></div>
<div>Presumably, there is an unicode conflict which needs to be resolved.</div><div><br></div><div>Can anyone offer any suggestions on resolving this?</div><div><br></div><div>Kind regards,</div><div><br></div><div>Dave Coventry</div>