Re: [Rdkit-discuss] (no subject)
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Greg L. <gre...@gm...> - 2012-07-28 10:35:50
|
On Sat, Jul 28, 2012 at 12:10 PM, Gianluca Sforna <gi...@gm...> wrote: > On Sat, Jul 28, 2012 at 7:51 AM, Huw Jones <huw...@gm...> wrote: >> My question is am I using the wrong PIL or an outdated PIL (I did update the >> PIL installed on my MacOS however that did not resolve the issue) or >> something. The hack I used to fix the issue with no structures being >> generated was not ideal after all? >> >> Many thanks for any suggestions you might have about this. > > To make a depiction the code tries to use three canvas backends: > cairo, aggdraw, sping, in that order. The poor quality is because you > ended up with the last one. That's exactly it. I have had problems installing cairo correctly on the Mac, so I think the easiest solution is to install aggdraw on your mac: - Download a distribution here: https://bitbucket.org/2degrees/aggdraw-64bits/downloads/aggdraw-1.1-64bits.tar.gz - extract the tarball somewhere - edit setup.py and set FREETYPE_ROOT to "/usr/X11" - set CFLAGS by runnig: export CFLAGS="-arch x86_64 -fpermissive" - build the package: python setup.py build - install the package: python setup.py install after you do this, the rdkit rendering should automatically use aggdraw and the quality should be a lot higher. I hope this helps, -greg |