[SciPy-user] Problems with porting code using weave

Travis Oliphant oliphant at ee.byu.edu
Fri Mar 24 13:22:29 CST 2006


Lars Bittrich wrote:

>Hi,
>
>I just tried to port my code to the new SciPy (scipy 0.4.7.1715 / numpy 
>0.9.7.2248). I got some problems with weave which are usually hard to track 
>down. So I looked at the tests:
>  
>
>scipy.test(10, 10)
>
>runs without any errors. But I was really surprised when I got a few errors 
>running:
>
>scipy.weave.test(1)
>
>  Found 16 tests for scipy.weave.slice_handler
>  Found 0 tests for scipy.weave.c_spec
>  Found 9 tests for scipy.weave.build_tools
>  Found 0 tests for scipy.weave.inline_tools
>  Found 1 tests for scipy.weave.ast_tools
>  Found 0 tests for scipy.weave.wx_spec
>  Found 2 tests for scipy.weave.blitz_tools
>building extensions here: /home/bittrich/.python23_compiled/m15
>  Found 1 tests for scipy.weave.ext_tools
>  Found 3 tests for scipy.weave.standard_array_spec
>  Found 26 tests for scipy.weave.catalog
>  Found 74 tests for scipy.weave.size_check
>  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
>.....F....copying /home/bittrich/.python23_compiled/linux223compiled_catalog 
>-> /tmp/tmpIvzGBO
>copying /tmp/tmpIvzGBO/linux223compiled_catalog 
>-> /home/bittrich/.python23_compiled
>.........copying /home/bittrich/.python23_compiled/linux223compiled_catalog 
>-> /tmp/tmpvpgFD0
>copying /tmp/tmpvpgFD0/linux223compiled_catalog 
>-> /home/bittrich/.python23_compiled
>.copying /home/bittrich/.python23_compiled/linux223compiled_catalog 
>-> /tmp/tmp2Mm4v7
>copying /tmp/tmp2Mm4v7/linux223compiled_catalog 
>-> /home/bittrich/.python23_compiled
>............removing '/tmp/tmp2vO62Qcat_test' (and everything under it)
>Exception bsddb._db.DBNoSuchFileError: <bsddb._db.DBNoSuchFileError instance 
>at 0x4a279bec> in  ignored
>.removing '/tmp/tmpuIJkqocat_test' (and everything under it)
>.............................E..E........E................EEEE.............
>======================================================================
>ERROR: check_1d_3 
>(scipy.weave.tests.test_size_check.test_dummy_array_indexing)
>----------------------------------------------------------------------
>Traceback (most recent call last):
>  File 
>"/opt/cp/lib/python2.3/site-packages/scipy/weave/tests/test_size_check.py", 
>line 207, in check_1d_3
>    if nx.which[0] != "numarray":
>AttributeError: 'module' object has no attribute 'which'
>
>  
>
These weave tests have apparently not been checked because they are not 
updated.   Why don't you let us know  what problems you are having with 
weave directly.   I've fixed the tests in SVN for this particular 
problem now.

>I wondered why there is no such test already in scipy.test(10, 10). I also 
>tried scipy.weave.test(10, 10). That test really takes a long time and breaks 
>with a segmentation fault. Using gdb I got:
>  
>
weave is tested separately.

There may still be lingering issues with weave as my once-twice over of 
it may have missed a couple of things in specific corners. 

Please let us know what trouble you are having.

-Travis




More information about the SciPy-user mailing list