I&#39;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&lt; ~~~~~~~~~~~~~~~~~~~~~~~~~~<br>  File &quot;/home/dave/Apps/blender-2.49b-linux-glibc236-py26-x86_64/.blender/scripts/pantographLib.py&quot;, line 1941, in Pen<br>
    MITER = cairo.LINE_JOIN_MITER<br>NameError: name &#39;cairo&#39; is not defined<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8&lt; ~~~~~~~~~~~~~~~~~~~~~~~~~~<div><br></div><div>When I type &quot;import cairo&quot; 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&lt; ~~~~~~~~~~~~~~~~~~~~~~~~~~<br>&lt;type &#39;exceptions.ImportError&#39;&gt;: /usr/lib/python2.6/dist-packages/cairo/_cairo.so:  undefined symbol: PyUnicodeUCS4_AsUTF8String<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8&lt; ~~~~~~~~~~~~~~~~~~~~~~~~~~</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>