Dear Kirk,
On Thu, Dec 31, 2009 at 3:37 PM, <[email protected]> wrote:
> Happy new year, RDKit-ers!
Thanks! you too.
>
> I've installed the latest RDKit on a Fedora 10 system and it seems to be
> functioning will except for drawing 2D images of molecules. I have PIL and
> aggdraw installed, however when I execute the following:
>
>>>> from rdkit import Chem
>>>> from rdkit.Chem import Draw
>>>> mol = Chem.MolFromSmiles('c1ccncc1CC(=O)O')
>>>> Draw.MolToImageFile(mol,'test.png')
>
>
> I get this:
>
<snip>
> font = Font(color,faceMap[font.face],size=font.size)
> IOError: cannot load font (no text renderer)
I believe that this problem occurs when aggdraw (and probably PIL) are
built without freetype2 support. Try installing the development
packages for freetype2 on the new machine and then rebuilding aggdraw.
Check through the output of the aggdraw build to make sure that it's
actually finding the freetype libraries.
Hope this helps,
-greg
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss