I was able to get the code built and working on a Fedora 12 system.
Initially I had the same error, but through some digging I found that I
needed to set the FREETYPE_ROOT variable to '/usr/' in the aggdraw setup.py
file. The latest freetype2 packages are already installed and all the
necessary libraries, includes, and code can be found within the /usr/
directory tree.
Thanks for the tip, Greg!
-Kirk
On Sun, Jan 3, 2010 at 10:08 PM, Greg Landrum <[email protected]>wrote:
> 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
>
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss