Hi Greg,
On Wed, Apr 20, 2011 at 1:44 PM, Greg Landrum <[email protected]> wrote:
>> On my Linux box the script failed, but the issue is related to the PIL
>> version (1.1.6) provided with Fedora 12 (now a bit old). I then
>
> I guess the complaint came somewhere around line 79 of cairoCanvas.py ?
> I saw an error here this morning when using the old version of PIL in
> Scientific Linux.
in my case it's at line 38 (but I see line 79 might trigger the same problem):
/.../rdkit/Chem/Draw/cairoCanvas.pyc in __init__(self, image, size,
ctx, imageType, fileName)
36 self.imageType=imageType
37 if image is not None:
---> 38 imgd = image.tostring("raw","BGRA")
39 a = array.array('B',imgd)
40 stride=image.size[0]*4
apparently the BGRA encoder wasn't yet available in PIL 1.1.6.
In any case, also on this machine, I could quickly override the
library available from the system with an updated one installed in a
virtualenv, and this fixed the issue with the image file generation.
Riccardo
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss