Hi,
I've built rdkit from source (cloned from github) on a Red Hat 4.4.6-4 box.
This is a local install, since my account is a user on a cluster here. The
build goes through, but when I run ctest afterwards, pythonTestDirChem
fails (all other tests pass). The failure appears to come from a KeyError
raised when pidPIL.py attempts to save a file
KeyError: '.png'
I installed PIL using
pip install Pillow
Do you folks have any thoughts on what might be going wrong here? I've
copied the full output from the failing test below:
.........E..
======================================================================
ERROR: testSpingFile (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "UnitTestDraw.py", line 76, in testSpingFile
Draw.MolToFile(self.mol,fn)
File "/home/rbharath/rdkit/rdkit/Chem/Draw/__init__.py", line 182, in
MolToFile
canvas.save()
File "/home/rbharath/rdkit/rdkit/Chem/Draw/spingCanvas.py", line 111, in
save
self.canvas.save()
File "/home/rbharath/rdkit/rdkit/sping/PIL/pidPIL.py", line 166, in save
self._image.save(filename, format=format)
File
"/home/rbharath/lib/python/lib/python2.7/site-packages/PIL/Image.py", line
1678, in save
raise KeyError(ext) # unknown extension
KeyError: '.png'
----------------------------------------------------------------------
Ran 12 tests in 0.652s
FAILED (errors=1)
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:09] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
[14:58:10] non-ring atom 1 marked aromatic
.
----------------------------------------------------------------------
Ran 1 test in 0.068s
OK
<end of output>
Test time = 54.67 sec
----------------------------------------------------------
Test Failed.
"pythonTestDirChem" end time: Jun 02 14:58 PDT
"pythonTestDirChem" time elapsed: 00:00:54
----------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss