On Sat, Jul 28, 2012 at 12:10 PM, Gianluca Sforna <gia...@gmail.com> wrote: > On Sat, Jul 28, 2012 at 7:51 AM, Huw Jones <huwdjo...@gmail.com> 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss