[Numpy-discussion] Test failures - which dependencies am I missing?
Chris Ball
ceball at gmail.com
Mon Apr 16 19:11:16 EDT 2012
Hi,
When I build NumPy and then run the tests on Ubuntu (10.04 LTS) and Debian
(6.1), I always seem to get several failures. I guess most of these failures
come from not having some dependencies installed, but I can't figure out which
ones by reading e.g. http://docs.scipy.org/doc/numpy/user/install.html. It
would be great if someone could tell me what I've likely missed!
I remember Gael Varoquaux posted a few weeks back with some of the same errors
(http://thread.gmane.org/gmane.comp.python.numeric.general/49032/). He was also
using Ubuntu (though a newer version).
Anyway, on Ubuntu here are the errors - other than known failures - after
"python setup.py build_ext -i" (or python setup.py build_ext -i --
fcompiler=gnu") followed by nosetests:
======================================================================
ERROR: Failure: ImportError (cannot import name fib2)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in
loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in
importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in
importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/scratch/ceball/numpy/numpy/distutils/tests/f2py_ext/tests/
test_fib2.py", line 3, in <module>
from f2py_ext import fib2
ImportError: cannot import name fib2
======================================================================
ERROR: Failure: ImportError (cannot import name foo)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in
loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in
importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in
importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/scratch/ceball/numpy/numpy/distutils/tests/f2py_f90_ext/tests/
test_foo.py", line 3, in <module>
from f2py_f90_ext import foo
ImportError: cannot import name foo
======================================================================
ERROR: Failure: ImportError (cannot import name fib3)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in
loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in
importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in
importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/scratch/ceball/numpy/numpy/distutils/tests/gen_ext/tests/
test_fib3.py", line 3, in <module>
from gen_ext import fib3
ImportError: cannot import name fib3
======================================================================
ERROR: Failure: ImportError (No module named primes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in
loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in
importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in
importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/scratch/ceball/numpy/numpy/distutils/tests/pyrex_ext/tests/
test_primes.py", line 3, in <module>
from pyrex_ext.primes import primes
ImportError: No module named primes
======================================================================
ERROR: Failure: ImportError (cannot import name example)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in
loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in
importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in
importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/scratch/ceball/numpy/numpy/distutils/tests/swig_ext/tests/
test_example.py", line 3, in <module>
from swig_ext import example
ImportError: cannot import name example
======================================================================
ERROR: Failure: ImportError (cannot import name example2)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in
loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in
importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in
importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/scratch/ceball/numpy/numpy/distutils/tests/swig_ext/tests/
test_example2.py", line 3, in <module>
from swig_ext import example2
ImportError: cannot import name example2
----------------------------------------------------------------------
I see something similar on Debian 6 (x86_64). You can see the full output for
that at https://jenkins.shiningpanda.com/scipy/job/NumPy/
PLATFORM=debian6,PYTHON=CPython-2.7/19/consoleFull, in case it helps.
Thanks,
Chris
More information about the NumPy-Discussion
mailing list