On Nov 20, 2012, at 11:05 AM, [email protected] wrote:
> The situation is getting complicated, since your hack did not help.

With your error message, I see that only 'sans' is allowed in RDKit.
So says rdkit/Chem/Draw/spingCanvas.py:

faceMap={'sans':'helvetica'}

which means I gave you a bad lead.

Starting from the beginning again, the exception message you get
says that string exceptions aren't supported. Would you change
rdkit/sping/PIL/pidPIL.py line 331 from

    if not pilfont: raise "bad font!", font

to

    if not pilfont: raise ValueError("bad font! %r" % (font,))

This will at least say what font it's trying to use. Perhaps that's
a clue.

If that doesn't prove useful, then the next step is to see why
that error message is generated. The code all depends on being
able to generate a font path, in the function "def _pilFont(font)".
Then it's a matter of putting some print statements in and seeing
why it fails, which mostly comes down to seeing what it uses for
the _pilFontPath.



In any case, fonts in PIL have always confused me. Perhaps the
problem is that you don't have any fonts available? But that
shouldn't be the case because RDKit comes with its own fonts, in
rdkit/sping/PIL/pilfonts/ . The "_pilFontPath" function returns
a path to those files.


There can be several layers of issues here. For example, you
said this was a clean machine, so perhaps freetype2 isn't installed?

At this point it's hard to go further without being able to
reproduce the problem myself.


                                Andrew
                                [email protected]



------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to