我在Mac os X(美洲狮)上通过从源代码编译的方式安装了Numpy和Scipy。
numpy测试结果很好。但是scipy测试有一个问题。
In [1]: import scipy
In [2]: scipy.test()
Running unit tests for scipy
NumPy version 1.6.2
NumPy is installed in /usr/local/lib/python2.7/site-packages/numpy
SciPy version 0.11.0
SciPy is installed in /usr/local/lib/python2.7/site-packages/scipy
Python version 2.7.3 (default, Dec 4 2012, 00:30:38) [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))]
nose version 1.2.1
.....................................................................................................................................................................................
F.FFPython(66098,0x7fff74ae5180) malloc: *** error for object 0x7fe9cb2e07b0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6有人知道如何解决这个问题吗?
多亏了pv,它看起来像是一个bug。
test_definition (test_basic.TestDoubleIFFT) ... FAIL
test_definition_real (test_basic.TestDoubleIFFT) ... ok
test_djbfft (test_basic.TestDoubleIFFT) ... FAIL
test_random_complex (test_basic.TestDoubleIFFT) ... FAIL
Python(66990,0x7fff74ae5180) malloc: *** error for object 0x7f9f53d8dec0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug我对其余的测试很好奇。如果这个失败的测试是唯一的问题,那就好了。
我怎样才能跳过这个失败的测试而继续其余的测试呢?
发布于 2012-12-05 01:30:40
使用scipy.test("full", verbose=2)运行,将输出存储到一个文件中,并归档一个错误报告:http://projects.scipy.org/scipy/ (但如果问题已知,请先尝试搜索)
https://stackoverflow.com/questions/13708212
复制相似问题