Dear Greg, Riccardo, et al.
> Riccardo wrote: > I don't know exactly about the other problems, but this one > should be related to the version of the installed PIL. If I > remember correctly, BGRA raw mode requires PIL 1.1.7. @Riccardo - Thanks for the advice, Riccardo. I think I was already on 1.1.7 - but maybe an alpha release(?) Anyway, I have now standardised across Python 2.6 and 2.7 with the latest PIL installers from http://www.pythonware.com/products/pil/. > Greg wrote: > I will try to do an aggdraw build for 2.7. If I succeed, I'll > post something. @Greg - Thanks for the kind offer. I for one would be very pleased to be using aggdraw again (as I think the image quality seems the best). I am pleased to say, however, that it is less critical now that I have worked through my cairo issues! : ) Previously I was getting: Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> from rdkit import Chem >>> from rdkit.Chem import AllChem, Draw >>> mol = Chem.MolFromSmiles("c1ccccc1") >>> AllChem.Compute2DCoords(mol) >>> im = Draw.MolToImage(mol) !!!PYTHONW.EXE CRASH!!! Finally, after a morning of going round in circles (and following red-herring Dependency Walker trails(!)), things are running well; with RDKit now happily calling cairo! I thought it might be useful for others to list the versions of software / DLLs that I finally found to work: Windows XP Pro. SP3 (32-bit) Python 2.7.1 (http://www.python.org/ftp/python/2.7.1/python-2.7.1.msi) PIL 1.1.7 (installer - http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe) Pycairo-1.8.10.win32-py2.7 (installer - http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.8/pycairo-1.8.10 .win32-py2.7.exe) Libcairo-2.dll (get from the following archive: http://wxpython.org/cairo/cairo_1.8.6-1_win32.zip) libpng12-0.dll (get from the following archive: http://wxpython.org/cairo/libpng_1.2.34-1_win32.zip) Zlib1.dll (get from the following archive: http://wxpython.org/cairo/zlib123-dll.zip) I then put the 3 DLLs into the C:\Python27\Lib\site-packages\cairo\ folder, and made sure that this is on the system path. The use of the wxPython DLLs seemed to be the key to sorting things out (I certainly tried a few other versions!) - thanks to Alex Matan's blog-post for the instructions (http://electromagnetictelegraph.com/install-cairo-wxpyton-pycairo-pytho n-windows) The setup under 2.6 was exactly the same - except I used the corresponding 2.6 installer for PIL, and used the Pycairo-1.8.4.win32-py26 from the wxPython site (http://wxpython.org/cairo/pycairo-1.8.4.win32-py2.6.exe) as detailed in Alex's blog. I can add these instructions to to the wiki if you like(?) Kind regards James ______________________________________________________________________ PLEASE READ: This email is confidential and may be privileged. It is intended for the named addressee(s) only and access to it by anyone else is unauthorised. If you are not an addressee, any disclosure or copying of the contents of this email or any action taken (or not taken) in reliance on it is unauthorised and may be unlawful. If you have received this email in error, please notify the sender or postmas...@vernalis.com. Email is not a secure method of communication and the Company cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please check this email for virus infection for which the Company accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated, any views or opinions presented are solely those of the author and do not represent those of the Company. The Vernalis Group of Companies Oakdene Court 613 Reading Road Winnersh, Berkshire RG41 5UA. Tel: +44 118 977 3133 To access trading company registration and address details, please go to the Vernalis website at www.vernalis.com and click on the "Company address and registration details" link at the bottom of the page.. ______________________________________________________________________ ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss