[SciPy-user] scipy.weave.test() failures

Roger Herikstad roger.herikstad@gmail....
Thu Dec 13 18:17:36 CST 2007


Hi all, I just built and installed the latest scipy release, but when I run
scipy.weave.test() I get these results:

>>> scipy.weave.test()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'weave'
>>> import scipy.weave
>>> scipy.weave.test()
  Found 1 tests for scipy.weave.ast_tools
  Found 2 tests for scipy.weave.blitz_tools
  Found 9 tests for scipy.weave.build_tools
  Found 0 tests for scipy.weave.c_spec
  Found 26 tests for scipy.weave.catalog
building extensions here: /opt/home/roger/.python25_compiled/m7
  Found 1 tests for scipy.weave.ext_tools
  Found 0 tests for scipy.weave.inline_tools
  Found 74 tests for scipy.weave.size_check
  Found 16 tests for scipy.weave.slice_handler
  Found 3 tests for scipy.weave.standard_array_spec
Warning: FAILURE importing tests for <module 'scipy.weave.wx_spec' from
'...s/maci/scipy/weave/wx_spec.pyc'>
/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_wx_spec.py:16:
ImportError: No module named wxPython (in <module>)
  Found 0 tests for __main__
...warning: specified build_dir '_bad_path_' does not exist or is not
writable. Trying default locations
...warning: specified build_dir '..' does not exist or is not writable.
Trying default locations
..warning: specified build_dir '_bad_path_' does not exist or is not
writable. Trying default locations
...warning: specified build_dir '..' does not exist or is not writable.
Trying default locations
..EE.........E..........................................F..F.............................................................
======================================================================
ERROR: check_add_function_ordered (
scipy.weave.tests.test_catalog.test_catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_catalog.py",
line 282, in check_add_function_ordered
    q.add_function('f',string.upper)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 649, in add_function
    self.add_function_persistent(code,function)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 665, in add_function_persistent
    cat = get_catalog(cat_dir,mode)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 300, in get_catalog
    sh = shelve.open(catalog_file,mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shelve.py",
line 225, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shelve.py",
line 209, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/anydbm.py",
line 83, in open
    return mod.open(file, flag, mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/dbhash.py",
line 16, in open
    return bsddb.hashopen(file, flag, mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/bsddb/__init__.py",
line 306, in hashopen
    d.open(file, db.DB_HASH, flags, mode)
DBFileExistsError: (17, 'File exists -- __fop_file_setup:  Retry limit (100)
exceeded')

======================================================================
ERROR: Test persisting a function in the default catalog
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_catalog.py",
line 270, in check_add_function_persistent1
    q.add_function_persistent('code',i)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 665, in add_function_persistent
    cat = get_catalog(cat_dir,mode)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 300, in get_catalog
    sh = shelve.open(catalog_file,mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shelve.py",
line 225, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shelve.py",
line 209, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/anydbm.py",
line 83, in open
    return mod.open(file, flag, mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/dbhash.py",
line 16, in open
    return bsddb.hashopen(file, flag, mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/bsddb/__init__.py",
line 306, in hashopen
    d.open(file, db.DB_HASH, flags, mode)
DBFileExistsError: (17, 'File exists -- __fop_file_setup:  Retry limit (100)
exceeded')

======================================================================
ERROR: Shouldn't get a single file from the temp dir.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_catalog.py",
line 198, in check_get_existing_files2
    q.add_function('code', os.getpid)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 649, in add_function
    self.add_function_persistent(code,function)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 665, in add_function_persistent
    cat = get_catalog(cat_dir,mode)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/catalog.py",
line 300, in get_catalog
    sh = shelve.open(catalog_file,mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shelve.py",
line 225, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shelve.py",
line 209, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/anydbm.py",
line 83, in open
    return mod.open(file, flag, mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/dbhash.py",
line 16, in open
    return bsddb.hashopen(file, flag, mode)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/bsddb/__init__.py",
line 306, in hashopen
    d.open(file, db.DB_HASH, flags, mode)
DBFileExistsError: (17, 'File exists -- __fop_file_setup:  Retry limit (100)
exceeded')

======================================================================
FAIL: check_1d_3 (
scipy.weave.tests.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 168, in check_1d_3
    self.generic_1d('a[-11:]')
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 135, in generic_1d
    self.generic_wrap(a,expr)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 127, in generic_wrap
    self.generic_test(a,expr,desired)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 123, in generic_test
    assert_array_equal(actual,desired, expr)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/numpy/testing/utils.py",
line 223, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/numpy/testing/utils.py",
line 215, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not equal
a[-11:]
(mismatch 100.0%)
 x: array([1])
 y: array([10])

======================================================================
FAIL: check_1d_6 (
scipy.weave.tests.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 174, in check_1d_6
    self.generic_1d('a[:-11]')
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 135, in generic_1d
    self.generic_wrap(a,expr)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 127, in generic_wrap
    self.generic_test(a,expr,desired)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/scipy/weave/tests/test_size_check.py",
line 123, in generic_test
    assert_array_equal(actual,desired, expr)
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/numpy/testing/utils.py",
line 223, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File
"/opt/cluster/usr/lib/python2.5/site-packages/maci/numpy/testing/utils.py",
line 215, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not equal
a[:-11]
(mismatch 100.0%)
 x: array([9])
 y: array([0])

----------------------------------------------------------------------
Ran 132 tests in 7.907s

FAILED (failures=2, errors=3)
<unittest.TextTestRunner object at 0x1cdb5d0>

This was run on an Intel Mac Pro running 10.5.1 . If I do the same on an
Intel MacBook, running the same OS version, the test passes, while still
giving the warnings about the build_dir. Any ideas as to what could be the
problem? Thanks!

~ Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071214/88430dbd/attachment.html 


More information about the SciPy-user mailing list