using aggdraw from Python 2.5
I have a toolkit that uses aggdraw to generate graphic files. On various systems, it seems to work fine with Python 2.4 and 2.6, but with Python 2.5 I get this error:
IOError: Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/__init__.py", line 104, in MolToImageFile
img = MolToImage(mol,size=size,kekulize=kekulize,wedgeBo nds=wedgeBonds,highlightAtoms=highlightAtoms)
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/__init__.py", line 50, in MolToImage
drawer.AddMol(mol,highlightAtoms=highlightAtoms)
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/MolDrawing.py", line 398, in AddMol
highlightIt=(highlightAtoms and idx in highlightAtoms))
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/MolDrawing.py", line 270, in _drawLabel
addCanvasText(canvas,label,(x1,y1),font,color)
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/aggCanvas.py", line 75, in addCanvasText
font = Font(color,faceMap[font.face],size=font.size)
IOError: cannot load font (no text renderer)
I've googled and found mention of others having a similar problem, but I have yet to find a resolution apart from a different version of Python.
Any advice or insight is greatly appreciated.
-Kirk
|