Crashes and test failures
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 ----------------------------------------------------------------------
On Thu, Mar 22, 2012 at 11:07 AM, Gael Varoquaux < gael.varoquaux@normalesup.org> wrote:
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
----------------------------------------------------------------------
This one was fixed a few days ago, so you aren't running the latest. That might be connected to all the import errors you are seeing. Chuck
On Thu, Mar 22, 2012 at 11:20:10AM -0600, Charles R Harris wrote:
This one was fixed a few days ago, so you aren't running the latest.
Indeed, but if I run the latest, any operation on arrays segfaults on me, so I am running 0.6.1. But you are saying that it's known and fixed. Great!
That might be connected to all the import errors you are seeing.
In a sens that good news. Gael
On Thu, Mar 22, 2012 at 11:24 AM, Gael Varoquaux < gael.varoquaux@normalesup.org> wrote:
On Thu, Mar 22, 2012 at 11:20:10AM -0600, Charles R Harris wrote:
This one was fixed a few days ago, so you aren't running the latest.
Indeed, but if I run the latest, any operation on arrays segfaults on me, so I am running 0.6.1. But you are saying that it's known and fixed. Great!
That might be connected to all the import errors you are seeing.
In a sens that good news.
Since you are running on Ubuntu, it's probably a good idea to python setup.py install --user which will put everything in .local and avoid the mess with dist-packages and site-packages. Maybe you do that already? I didn't have any problems with Ubuntu 11.04 64 bit apart for unity, which drove me back to Fedora. So if the problems presist I'll guess compiler/i7/atlas problems. Chuck
On Thu, Mar 22, 2012 at 06:24:13PM -0600, Charles R Harris wrote:
Since you are running on Ubuntu, it's probably a good idea to
python setup.py install --user
which will put everything in .local and avoid the mess with dist-packages and site-packages. Maybe you do that already?
I actually did python setupegg.py develop --user I would think that it is close enough.
I didn't have any problems with Ubuntu 11.04 64 bit apart for unity, which drove me back to Fedora. So if the problems presist I'll guess compiler/i7/atlas problems.
OK, so if it is confirmed that the crash is specific to my computer, I'll bisect to find out where it appeared. Cheers, Gaël
participants (2)
-
Charles R Harris -
Gael Varoquaux