I've run into a few issues running the tests.
I'm following the 'INSTALL' directions included with RDKit_Q12009_2.
[r...@pilosus RDKit_Q12009_2]# cd $RDBASE/Code
[r...@pilosus Code]# python $RDBASE/rdkit/TestRunner.py test_list.py
Traceback (most recent call last):
File "/usr/local/src/RDKit_Q12009_2/rdkit/TestRunner.py", line 77, in
RunScript
res = RunTest(exeName,args,extras)
File "/usr/local/src/RDKit_Q12009_2/rdkit/TestRunner.py", line 27, in
RunTest
retVal = spawn(os.P_WAIT,exeName,[exeName]+args,os.environ)
NameError: global name 'spawn' is not defined
Traceback (most recent call last):
File "/usr/local/src/RDKit_Q12009_2/rdkit/TestRunner.py", line 77, in
RunScript
res = RunTest(exeName,args,extras)
File "/usr/local/src/RDKit_Q12009_2/rdkit/TestRunner.py", line 24, in
RunTest
os.chdir(extras['dir'])
...
I'm running Python 2.4:
[r...@pilosus Code]# python
Python 2.4.3 (#1, Dec 11 2006, 11:39:03)
I noticed that I find change the top section of TestRunner.py from:
if sys.version_info[0]>2 or sys.version_info[1]>4:
import subprocess
else:
subprocess=None
to:
#if sys.version_info[0]>2 or sys.version_info[1]>4:
import subprocess
#else:
# subprocess=None
I can then run the first test suite:
[r...@pilosus Code]# python $RDBASE/rdkit/TestRunner.py test_list.py
...
Script: test_list.py. Passed 15 tests in 22.00 seconds
and everything appears to be happy. It goes down hill from here:
[r...@pilosus ~]# cd $RDBASE/rdkit
[r...@pilosus rdkit]# python $RDBASE/rdkit/TestRunner.py test_list.py
...
Script: test_list.py. Failed 2 (of 6) tests in 43.27 seconds
(ML): python test_list.py
(Chem): python test_list.py
-many of the error messages are:
from gvib import *
ImportError: No module named gvib
-but I also see things like:
File "SplitData.py", line 51, in __main__.SplitIndices
Failed example:
DataUtils.InitRandomNumbers((23,42))
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.4/doctest.py", line 1243, in __run
compileflags, 1) in test.globs
File "<doctest __main__.SplitIndices[1]>", line 1, in ?
DataUtils.InitRandomNumbers((23,42))
NameError: name 'DataUtils' is not defined
and:
Failed example:
suppl = ForwardDbFpSupplier(conn.GetData())
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.4/doctest.py", line 1243, in __run
compileflags, 1) in test.globs
File "<doctest __main__.ForwardDbFpSupplier[4]>", line 1, in ?
suppl = ForwardDbFpSupplier(conn.GetData())
NameError: name 'conn' is not defined
[r...@pilosus rdkit]# cd $RDBASE/Projects
[r...@pilosus Projects]# python $RDBASE/rdkit/TestRunner.py test_list.py
Is gvib something that I need to install as a pre-req?
Is my PYTHONPATH not complete?
[r...@pilosus Projects]# echo $PYTHONPATH
/usr/local/src/RDKit_Q12009_2
[r...@pilosus Projects]# ls $PYTHONPATH
bin Docs license.txt README Scripts
Code External Projects README.local_install_notes setup.py
Data INSTALL rdkit ReleaseNotes.txt Web
Thanks in advance.
Malcolm
--
Malcolm Tobias
314.362.1594