[Numpy-discussion] Crashes and test failures

Gael Varoquaux gael.varoquaux@normalesup....
Thu Mar 22 12:07:36 CDT 2012


Hi list,

I just got a new laptop, running Ubuntu 11.10 64bit on an Intel i7.
I am a bit intriged by the test results of numpy on this box.

First of all, master builds and imports OK, but the simplest test case
crashes with a segfault:

    import numpy as np
    a = np.ones(10, dtype=np.bool)
    np.all(a)

Am I the only one to see this? If so, I am wiling to investigate, but
I'll need a bit of help, as I had a look with gcc, and the crash
seems burried deep in the guts of numpy.

Second, I backed out a bit, and checkout out the 1.6.1 tag. It builds
alright and doesn't segfault, but I am getting a few test failures
(pasted at the end of the mail). I haven't been following the mailing
list well-enough lately, so I am unsure: are these known failure. I was
surprised to find a tag that looked like a release with failures.

Sorry if I am asking stupid questions, finding master unusable at first
glance for me was a bit offseting.

Gael



======================================================================
ERROR: Failure: ImportError (cannot import name fib2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/nose/loader.py", line 390, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/varoquau/dev/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.7/nose/loader.py", line 390, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/varoquau/dev/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.7/nose/loader.py", line 390, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/varoquau/dev/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.7/nose/loader.py", line 390, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/varoquau/dev/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.7/nose/loader.py", line 390, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/varoquau/dev/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.7/nose/loader.py", line 390, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/varoquau/dev/numpy/numpy/distutils/tests/swig_ext/tests/test_example2.py",
line 3, in <module>
    from swig_ext import example2
ImportError: cannot import name example2

======================================================================
FAIL: test_kind.TestKind.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/home/varoquau/dev/numpy/numpy/f2py/tests/test_kind.py", line 30,
in test_all
    'selectedrealkind(%s): expected %r but got %r' %  (i,
selected_real_kind(i), selectedrealkind(i)))
  File "/home/varoquau/dev/numpy/numpy/testing/utils.py", line 34, in
assert_
    raise AssertionError(msg)
AssertionError: selectedrealkind(19): expected -1 but got 16

----------------------------------------------------------------------



More information about the NumPy-Discussion mailing list