Dear Greg,

>
> PIL is a separate python package that you need to install:
> http://www.pythonware.com/products/pil/
>
> I guess one important question that I forgot to ask is: Why are you
> trying to do this;
> from rdkit.sping import PIL

Forget about that! Here, I was totally on the wrong track...

When trying to depict a 2D figure from a SMILES string with that code:
"
mol = Chem.MolFromSmiles(smi)
AllChem.Compute2DCoords(mol)
Draw.MolToImageFile(mol, outF)
"

In end up in this error message:
"
IOError: encoder zip not available
"

>From the wonderful source of wisdom stackoverflow.com, I found out that
pillow is recommended for usage with PIL to resolve the zlib issue.
In my case, it helped, but I'm not sure if this is a rather quick and dirty
hack.


Cheers.
Paul

This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
you must not copy this message or attachment or disclose the contents to
any other person. If you have received this transmission in error, please
notify the sender immediately and delete the message and any attachment
from your system. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not accept liability for any omissions or errors in this
message which may arise as a result of E-Mail-transmission or for damages
resulting from any unauthorized changes of the content of this message and
any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not guarantee that this message is free of viruses and does
not accept liability for any damages caused by any virus transmitted
therewith.

Click http://www.merckgroup.com/disclaimer to access the German, French,
Spanish and Portuguese versions of this disclaimer.


------------------------------------------------------------------------------
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

Reply via email to