[SciPy-user] Problem with weave blitz win32

Samuel GARCIA sgarcia at olfac.univ-lyon1.fr
Mon Mar 19 05:00:28 EDT 2007


Hi list,

does anyone have experience a scipy.weave with blitz on winXP ?
My still have the problem running the example array3d.py ...

And I have few knowledge about compilation ...

Any help would be wonderfull...

Sam

Samuel GARCIA wrote:
> Hi list,
>
> I have problem running weave on windowsXP.
>
> Version :
> Python 2.5
> MiGW 3.4.2
> Scipy 0.5.2
> Numpy 1.0.1
>
>
> array3d.py give me :
>
> numpy:
> [[[ 0  1  2  3]
>   [ 4  5  6  7]
>   [ 8  9 10 11]]
>
>  [[12 13 14 15]
>   [16 17 18 19]
>   [20 21 22 23]]]
> Pure Inline:
> <weave: compiling>
> img[  0][  0]=   0   1   2   3
> img[  0][  1]=   4   5   6   7
> img[  0][  2]=   8   9  10  11
> img[  1][  0]=  12  13  14  15
> img[  1][  1]=  16  17  18  19
> img[  1][  2]=  20  21  22  23
> Blitz Inline:
> <weave: compiling>
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:5:
> warning: ignoring #pragma warning
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:6:
> warning: ignoring #pragma warning
> In file included from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/applics.h:400,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/vecexpr.h:32,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/vecpick.cc:16,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/vecpick.h:293,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/vector.h:449,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/tinyvec.h:430,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/array-impl.h:44,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/array.h:32,
>                  from
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:9:
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/mathfunc.h: In
> static member function `static double
> blitz::_bz_expm1<P_numtype1>::apply(P_numtype1)':
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/mathfunc.h:1353:
> error: `::expm1' has not been declared
> In file included from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/array/funcs.h:29,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/array/newet.h:29,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/array/et.h:27,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/array-impl.h:2515,
>                  from
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/array.h:32,
>                  from
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:9:
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/funcs.h: In
> static member function `static T_numtype1
> blitz::Fn_expm1<T_numtype1>::apply(T_numtype1)':
> G:/Python25/lib/site-packages/scipy/weave/blitz/blitz/funcs.h:113:
> error: `::expm1' has not been declared
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:
> In function `PyObject* file_to_py(FILE*, char*, char*)':
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:404:
> warning: unused variable 'py_obj'
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:
> In function `blitz::Array<P_numtype, N_rank>
> convert_to_blitz(PyArrayObject*, const char*) [with T = int, int N = 3]':
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:708:  
> instantiated from here
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp:657:
> warning: unused variable 'stride_acc'
> Traceback (most recent call last):
>   File "array3d.py", line 105, in <module>
>     main()
>   File "array3d.py", line 101, in main
>     blitz_inline(arr)
>   File "array3d.py", line 89, in blitz_inline
>     weave.inline(code, ['arr'], type_converters=converters.blitz)
>   File "G:\Python25\Lib\site-packages\scipy\weave\inline_tools.py",
> line 339, in inline
>     **kw)
>   File "G:\Python25\Lib\site-packages\scipy\weave\inline_tools.py",
> line 447, in compile_function
>     verbose=verbose, **kw)
>   File "G:\Python25\Lib\site-packages\scipy\weave\ext_tools.py", line
> 365, in compile
>     verbose = verbose, **kw)
>   File "G:\Python25\Lib\site-packages\scipy\weave\build_tools.py",
> line 269, in build_extension
>     setup(name = module_name, ext_modules = [ext],verbose=verb)
>   File "G:\Python25\Lib\site-packages\numpy\distutils\core.py", line
> 174, in setup
>     return old_setup(**new_attr)
>   File "G:\Python25\lib\distutils\core.py", line 168, in setup
>     raise SystemExit, "error: " + str(msg)
> distutils.errors.CompileError: error: Command "g++ -mno-cygwin -O2
> -Wall -IG:\Python25\lib\site-packages\scipy\weave
> -IG:\Python25\lib\site-packages\scipy\weave\scxx
> -IG:\Python25\lib\site-packages\scipy\weave\blitz
> -IG:\Python25\lib\site-packages\numpy\core\include
> -IG:\Python25\include -IG:\Python25\PC -c
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.cpp
> -o
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_intermediate\compiler_894ad5ed761bb51736c6d2b7872dc212\Release\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\sc_49e94d1bdd1ad16917064c910093194f0.o"
> failed with exit status 1
>
>
> And weave.test() give me :
>
>
> Found 0 tests for scipy.weave.c_spec
>   Found 2 tests for scipy.weave.blitz_tools
> building extensions here:
> g:\docume~1\sgarcia\locals~1\temp\sgarcia\python25_compiled\m7
>   Found 1 tests for scipy.weave.ext_tools
>   Found 9 tests for scipy.weave.build_tools
>   Found 0 tests for scipy.weave.inline_tools
>   Found 1 tests for scipy.weave.ast_tools
> Warning: FAILURE importing tests for <module 'scipy.weave.wx_spec'
> from '...ckages\\scipy\\weave\\wx_spec.pyc'>
> G:\Python25\Lib\site-packages\scipy\weave\tests\test_wx_spec.py:16:
> ImportError: No module named wxPython (in <module>)
>   Found 3 tests for scipy.weave.standard_array_spec
>   Found 74 tests for scipy.weave.size_check
>   Found 26 tests for scipy.weave.catalog
>   Found 16 tests for scipy.weave.slice_handler
>   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 '_bad_path_' does not exist or is
> not writable. Trying default locations
> ....................................F..F..................................................................removing
> 'g:\docume~1\sgarcia\locals~1\temp\tmpga71mmcat_test' (and everything
> under it)
> error removing g:\docume~1\sgarcia\locals~1\temp\tmpga71mmcat_test:
> g:\docume~1\sgarcia\locals~1\temp\tmpga71mmcat_test: Le répertoire
> n'est pas vide
> .removing 'g:\docume~1\sgarcia\locals~1\temp\tmpimmvs6cat_test' (and
> everything under it)
> .................
> ======================================================================
> FAIL: check_1d_3
> (scipy.weave.tests.test_size_check.test_dummy_array_indexing)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 168, in check_1d_3
>     self.generic_1d('a[-11:]')
>   File
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 135, in generic_1d
>     self.generic_wrap(a,expr)
>   File
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 127, in generic_wrap
>     self.generic_test(a,expr,desired)
>   File
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 123, in generic_test
>     assert_array_equal(actual,desired, expr)
>   File "G:\Python25\lib\site-packages\numpy\testing\utils.py", line
> 223, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "G:\Python25\lib\site-packages\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
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 174, in check_1d_6
>     self.generic_1d('a[:-11]')
>   File
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 135, in generic_1d
>     self.generic_wrap(a,expr)
>   File
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 127, in generic_wrap
>     self.generic_test(a,expr,desired)
>   File
> "G:\Python25\Lib\site-packages\scipy\weave\tests\test_size_check.py",
> line 123, in generic_test
>     assert_array_equal(actual,desired, expr)
>   File "G:\Python25\lib\site-packages\numpy\testing\utils.py", line
> 223, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "G:\Python25\lib\site-packages\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 2.266s
>
> FAILED (failures=2)
> >Exit code: 0
>
>
> And of course my main problem is that some of my code that work on
> linux debian does'nt work on win32.
> (But it used to work on the old enthon distribution version!)
>
> Any idea ?
>
> Thank
>
> Sam
>
>
>
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Samuel Garcia
> Laboratoire de Neurosciences Sensorielles, Comportement, Cognition.
> CNRS - UMR5020 - Universite Claude Bernard LYON 1
> Equipe logisique et technique
> 50, avenue Tony Garnier
> 69366 LYON Cedex 07
> FRANCE
> Tél : 04 37 28 74 64
> Fax : 04 37 28 76 01
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samuel Garcia
Laboratoire de Neurosciences Sensorielles, Comportement, Cognition.
CNRS - UMR5020 - Universite Claude Bernard LYON 1
Equipe logisique et technique
50, avenue Tony Garnier
69366 LYON Cedex 07
FRANCE
Tél : 04 37 28 74 64
Fax : 04 37 28 76 01
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20070319/40a0a822/attachment.html>


More information about the SciPy-User mailing list