[SciPy-user] weave.test() fails (Caught CompileError)

Russell Cecala russellcecala at netscape.net
Tue Jul 23 13:35:08 CDT 2002


Thanks! Fernando,


Please excuse my ignorance.  I am new
to Python, weave, and windows.
I finally figured out to use IDLE.
But the only way I know to start
IDLE is to find a .py file in "Windows Explorer"
and click on it.  Is there a IDLE.exe I can 
run from a command-line? (*not a important question*)

I have installed Numeric
Here's what is going on now.
I downloaded and executed Numeric-21.0.win32.py2.2.exe

Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> import weave
>>> weave.test()
Caught CompileError
FAILURE to import weave.test_ex
E:\russ\python\lib\distutils\core.py:157: CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2 (in setup)
 creating test suite for: weave.ast_tools
No test suite found for  weave.base_info
No test suite found for  weave.base_spec
No test suite found for  weave.blitz_info
No test suite found for  weave.blitz_spec
 creating test suite for: weave.blitz_tools
 creating test suite for: weave.build_tools
 creating test suite for: weave.catalog
No test suite found for  weave.code_blocks
No test suite found for  weave.common_info
 creating test suite for: weave.common_spec
No test suite found for  weave.conversion_code
No test suite found for  weave.conversion_code_classes
No test suite found for  weave.conversion_code_old
No test suite found for  weave.cxx_info
No test suite found for  weave.dumbdbm_patched
No test suite found for  weave.dumb_shelve
 creating test suite for: weave.ext_tools
building extensions here: C:\TEMP\python22_compiled\3610
building extensions here: C:\TEMP\python22_compiled\3611
No test suite found for  weave.inline_info
 creating test suite for: weave.inline_tools
No test suite found for  weave.lib2def
No test suite found for  weave.misc
No test suite found for  weave.scalar_info
 creating test suite for: weave.scalar_spec
 creating test suite for: weave.sequence_spec
 creating test suite for: weave.size_check
 creating test suite for: weave.slice_handler
No test suite found for  weave.standard_array_info
 creating test suite for: weave.standard_array_spec
No test suite found for  weave.swig_info
No test suite found for  weave.wx_info
No test suite found for  weave.wx_spec
...
Expression: result[1:-1,1:-1] = (b[1:-1,1:-1] + b[2:,1:-1] + b[:-2,1:-1]+ b[1:-1,2:] + b[1:-1,:-2]) / 5.
Run: (10, 10) f
Ewarning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations
....warning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations
...............................EEE.EEEEEEEEE....EEEE....EEE....EEEE.............................................................................................
======================================================================
ERROR: result[1:-1,1:-1] = (b[1:-1,1:-1] + b[2:,1:-1] + b[:-2,1:-1]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "E:\russ\python\weave\tests\test_blitz_tools.py", line 154, in check_5point_avg_2d
    self.generic_2d(expr)
  File "E:\russ\python\weave\tests\test_blitz_tools.py", line 128, in generic_2d
    mod_location)
  File "E:\russ\python\weave\tests\test_blitz_tools.py", line 84, in generic_test
    blitz_tools.blitz(expr,arg_dict,{},verbose=0) #,
  File "weave\blitz_tools.py", line 99, in blitz
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 138, in setup
    dist.run_commands()
  File "E:\russ\python\lib\distutils\dist.py", line 893, in run_commands
    self.run_command(cmd)
  File "E:\russ\python\lib\distutils\dist.py", line 913, in run_command
    cmd_obj.run()
  File "E:\russ\python\lib\distutils\command\build_ext.py", line 230, in run
    force=self.force)
  File "E:\russ\python\lib\distutils\ccompiler.py", line 957, in new_compiler
    return klass (verbose, dry_run, force)
  File "weave\build_tools.py", line 375, in __init__
  File "weave\build_tools.py", line 421, in build_import_library
ImportError: No module named lib2def

======================================================================
ERROR: check_file_to_py (test_common_spec.test_file_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_common_spec.py", line 32, in check_file_to_py
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_py_to_file (test_common_spec.test_file_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_common_spec.py", line 17, in check_py_to_file
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_call_function (test_common_spec.test_callable_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_common_spec.py", line 56, in check_call_function
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_multi_functions (test_ext_tools.test_ext_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_ext_tools.py", line 37, in check_multi_functions
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_return_tuple (test_ext_tools.test_ext_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_ext_tools.py", line 94, in check_return_tuple
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: Simplest possible module
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_ext_tools.py", line 27, in check_simple
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_string_and_int (test_ext_tools.test_ext_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_ext_tools.py", line 73, in check_string_and_int
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_with_include (test_ext_tools.test_ext_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_ext_tools.py", line 58, in check_with_include
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: Simplest possible function
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_ext_tools.py", line 108, in check_simple
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_exceptions (test_inline_tools.test_inline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_inline_tools.py", line 23, in check_exceptions
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_int_return (test_scalar_spec.test_msvc_int_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 109, in check_int_return
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_int_var_local (test_scalar_spec.test_msvc_int_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 90, in check_int_var_local
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_var_in (test_scalar_spec.test_msvc_int_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 65, in check_var_in
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_float_return (test_scalar_spec.test_msvc_float_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 183, in check_float_return
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_float_var_in (test_scalar_spec.test_msvc_float_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 140, in check_float_var_in
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_float_var_local (test_scalar_spec.test_msvc_float_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 164, in check_float_var_local
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_complex_return (test_scalar_spec.test_msvc_complex_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 256, in check_complex_return
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_complex_var_in (test_scalar_spec.test_msvc_complex_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 213, in check_complex_var_in
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_complex_var_local (test_scalar_spec.test_msvc_complex_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_scalar_spec.py", line 237, in check_complex_var_local
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_convert_to_dict (test_sequence_spec.test_sequence_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_sequence_spec.py", line 12, in check_convert_to_dict
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_convert_to_list (test_sequence_spec.test_sequence_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_sequence_spec.py", line 15, in check_convert_to_list
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_convert_to_string (test_sequence_spec.test_sequence_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_sequence_spec.py", line 18, in check_convert_to_string
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

======================================================================
ERROR: check_convert_to_tuple (test_sequence_spec.test_sequence_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave\tests\test_sequence_spec.py", line 21, in check_convert_to_tuple
  File "weave\inline_tools.py", line 327, in inline
  File "weave\inline_tools.py", line 426, in compile_function
  File "weave\ext_tools.py", line 349, in compile
  File "weave\build_tools.py", line 194, in build_extension
  File "E:\russ\python\lib\distutils\core.py", line 157, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: command '"d:\program files\devstudio\vc\bin\cl.exe"' failed with exit status 2

----------------------------------------------------------------------
Ran 168 tests in 15.202s

FAILED (errors=24)
<unittest.TextTestRunner instance at 0x00B1A150>
>>> 


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/




More information about the SciPy-user mailing list