Hi,

Am Freitag, den 06.08.2010, 12:00 +0200 schrieb Riccardo Vianello:

> 
> My understanding of image formats, encodings and the graphics
> subsystem is extremely limited so I don't know exactly which other
> information could be useful to tracking the problem.. the installed
> python imaging library is PIL 1.1.6. Are there other library revisions
> I could check or dependencies I should verify are correctly solved?
> 
To bad, i have no luck with this code. Only PIL 1.1.7 seems to support
the BGRA packer (libImaging/Pack.c).  As a temporary workaround you can
try :

from rdkit.Chem.AllChem import MolFromSmiles, Compute2DCoords
from rdkit.Chem.Draw import MolToFile
molecule = MolFromSmiles('c1ccccc1')
Compute2DCoords(molecule)
MolToFile(molecule,'img.png', size=(250, 250),  #img.pdf,img.svg,img.ps
          kekulize=True, wedgeBonds=True,
          highlightAtoms=[])


In this case you circumvent PIL (and agg) completely.  

The functionality of MolToFile should be folded into MolToImageFile. 
The problem with MolToImage is still open in this case.

Regards
  Uwe


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to