The weave bug seems to be still present in scipy 0.7.1
I am running Ubuntu 9.10 (Karmic) and have scipy installed from source (since it is not in the repos) without problems, the required Atlas, ... libraries were installed using synaptic
ipython:
In [2]: scipy.__version__
Out[2]: '0.7.1'
Running a weave.blitz test routine:
"...
weave.inline(code, vars, type_converters = weave.converters.blitz)
..."
Output is:
starting weavefunc..
In file included from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/applics.h:394, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vecexpr.h:26, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vecpick.cc:16, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vecpick.h:287, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vector.h:443, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/tinyvec.h:424, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array-impl.h:38, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array.h:26, from /home/jakob/.python26_compiled/sc_6211de8cbbdd4538661eae1a48c2a9890.cpp:11:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/mathfunc.h: In static member function ‘static long int blitz::_bz_abs<long int>::apply(long int)’:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/mathfunc.h:45: error: ‘labs’ is not a member of ‘std’
In file included from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array/funcs.h:23, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array/newet.h:23, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array/et.h:21, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array-impl.h:2509, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array.h:26, from /home/jakob/.python26_compiled/sc_6211de8cbbdd4538661eae1a48c2a9890.cpp:11:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h: In static member function ‘static int blitz::Fn_abs<int>::apply(int)’:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h:503: error: call of overloaded ‘abs(int&)’ is ambiguous
/usr/include/c++/4.4/cmath:94: note: candidates are: double std::abs(double)
/usr/include/c++/4.4/cmath:98: note: float std::abs(float)
/usr/include/c++/4.4/cmath:102: note: long double std::abs(long double)
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h: In static member function ‘static long int blitz::Fn_abs<long int>::apply(long int)’:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h:524: error: ‘labs’ is not a member of ‘std’
In file included from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/applics.h:394, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vecexpr.h:26, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vecpick.cc:16, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vecpick.h:287, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/vector.h:443, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/tinyvec.h:424, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array-impl.h:38, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array.h:26, from /home/jakob/.python26_compiled/sc_6211de8cbbdd4538661eae1a48c2a9890.cpp:11:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/mathfunc.h: In static member function ‘static long int blitz::_bz_abs<long int>::apply(long int)’:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/mathfunc.h:45: error: ‘labs’ is not a member of ‘std’
In file included from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array/funcs.h:23, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array/newet.h:23, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array/et.h:21, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array-impl.h:2509, from /usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/array.h:26, from /home/jakob/.python26_compiled/sc_6211de8cbbdd4538661eae1a48c2a9890.cpp:11:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h: In static member function ‘static int blitz::Fn_abs<int>::apply(int)’:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h:503: error: call of overloaded ‘abs(int&)’ is ambiguous
/usr/include/c++/4.4/cmath:94: note: candidates are: double std::abs(double)
/usr/include/c++/4.4/cmath:98: note: float std::abs(float)
/usr/include/c++/4.4/cmath:102: note: long double std::abs(long double)
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h: In static member function ‘static long int blitz::Fn_abs<long int>::apply(long int)’:
/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz/blitz/funcs.h:524: error: ‘labs’ is not a member of ‘std’
Traceback (most recent call last):
File "weavetestsingle.py", line 22, in <module>
weave.inline(code, vars, type_converters = weave.converters.blitz, compiler = 'gcc', extra_compile_args = ["-O3"])
File "/usr/local/lib/python2.6/dist-packages/scipy/weave/inline_tools.py", line 335, in inline
**kw)
File "/usr/local/lib/python2.6/dist-packages/scipy/weave/inline_tools.py", line 462, in compile_function
verbose=verbose, **kw)
File "/usr/local/lib/python2.6/dist-packages/scipy/weave/ext_tools.py", line 365, in compile
verbose = verbose, **kw)
File "/usr/local/lib/python2.6/dist-packages/scipy/weave/build_tools.py", line 272, in build_extension
setup(name = module_name, ext_modules = [ext],verbose=verb)
File "/usr/local/lib/python2.6/dist-packages/numpy/distutils/core.py", line 186, in setup
return old_setup(**new_attr)
File "/usr/lib/python2.6/distutils/core.py", line 169, in setup
raise SystemExit, "error: " + str(msg)
scipy.weave.build_tools.CompileError: error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -fPIC -I/usr/local/lib/python2.6/dist-packages/scipy/weave -I/usr/local/lib/python2.6/dist-packages/scipy/weave/scxx -I/usr/local/lib/python2.6/dist-packages/scipy/weave/blitz -I/usr/local/lib/python2.6/dist-packages/numpy/core/include -I/usr/include/python2.6 -c /home/jakob/.python26_compiled/sc_6211de8cbbdd4538661eae1a48c2a9890.cpp -o /tmp/jakob/python26_intermediate/compiler_71e584768071aa3498d8ed2c780a199b/home/jakob/.python26_compiled/sc_6211de8cbbdd4538661eae1a48c2a9890.o -O3" failed with exit status 1
The weave bug seems to be still present in scipy 0.7.1
I am running Ubuntu 9.10 (Karmic) and have scipy installed from source (since it is not in the repos) without problems, the required Atlas, ... libraries were installed using synaptic
ipython:
In [2]: scipy.__version__
Out[2]: '0.7.1'
Running a weave.blitz test routine: s.blitz)
"...
weave.inline(code, vars, type_converters = weave.converter
..."
Output is: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ applics. h:394,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vecexpr. h:26,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vecpick. cc:16,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vecpick. h:287,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vector. h:443,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ tinyvec. h:424,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array-impl. h:38,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array.h: 26,
from /home/jakob/ .python26_ compiled/ sc_6211de8cbbdd 4538661eae1a48c 2a9890. cpp:11: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ mathfunc. h: In static member function ‘static long int blitz::_bz_abs<long int>::apply(long int)’: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ mathfunc. h:45: error: ‘labs’ is not a member of ‘std’ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array/funcs. h:23,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array/newet. h:23,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array/et. h:21,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array-impl. h:2509,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array.h: 26,
from /home/jakob/ .python26_ compiled/ sc_6211de8cbbdd 4538661eae1a48c 2a9890. cpp:11: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: In static member function ‘static int blitz:: Fn_abs< int>::apply( int)’: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: 503: error: call of overloaded ‘abs(int&)’ is ambiguous c++/4.4/ cmath:94: note: candidates are: double std::abs(double) c++/4.4/ cmath:98: note: float std::abs(float) c++/4.4/ cmath:102: note: long double std::abs(long double) lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: In static member function ‘static long int blitz::Fn_abs<long int>::apply(long int)’: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: 524: error: ‘labs’ is not a member of ‘std’ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ applics. h:394,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vecexpr. h:26,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vecpick. cc:16,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vecpick. h:287,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ vector. h:443,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ tinyvec. h:424,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array-impl. h:38,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array.h: 26,
from /home/jakob/ .python26_ compiled/ sc_6211de8cbbdd 4538661eae1a48c 2a9890. cpp:11: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ mathfunc. h: In static member function ‘static long int blitz::_bz_abs<long int>::apply(long int)’: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ mathfunc. h:45: error: ‘labs’ is not a member of ‘std’ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array/funcs. h:23,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array/newet. h:23,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array/et. h:21,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array-impl. h:2509,
from /usr/local/ lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ array.h: 26,
from /home/jakob/ .python26_ compiled/ sc_6211de8cbbdd 4538661eae1a48c 2a9890. cpp:11: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: In static member function ‘static int blitz:: Fn_abs< int>::apply( int)’: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: 503: error: call of overloaded ‘abs(int&)’ is ambiguous c++/4.4/ cmath:94: note: candidates are: double std::abs(double) c++/4.4/ cmath:98: note: float std::abs(float) c++/4.4/ cmath:102: note: long double std::abs(long double) lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: In static member function ‘static long int blitz::Fn_abs<long int>::apply(long int)’: lib/python2. 6/dist- packages/ scipy/weave/ blitz/blitz/ funcs.h: 524: error: ‘labs’ is not a member of ‘std’ e.py", line 22, in <module> inline( code, vars, type_converters = weave.converter s.blitz, compiler = 'gcc', extra_compile_args = ["-O3"]) lib/python2. 6/dist- packages/ scipy/weave/ inline_ tools.py" , line 335, in inline lib/python2. 6/dist- packages/ scipy/weave/ inline_ tools.py" , line 462, in compile_function verbose, **kw) lib/python2. 6/dist- packages/ scipy/weave/ ext_tools. py", line 365, in compile lib/python2. 6/dist- packages/ scipy/weave/ build_tools. py", line 272, in build_extension lib/python2. 6/dist- packages/ numpy/distutils /core.py" , line 186, in setup **new_attr) python2. 6/distutils/ core.py" , line 169, in setup build_tools. CompileError: error: Command "g++ -pthread -fno-strict- aliasing -DNDEBUG -g -fwrapv -O2 -fPIC -I/usr/ local/lib/ python2. 6/dist- packages/ scipy/weave -I/usr/ local/lib/ python2. 6/dist- packages/ scipy/weave/ scxx -I/usr/ local/lib/ python2. 6/dist- packages/ scipy/weave/ blitz -I/usr/ local/lib/ python2. 6/dist- packages/ numpy/core/ include -I/usr/ include/ python2. 6 -c /home/jakob/ .python26_ compiled/ sc_6211de8cbbdd 4538661eae1a48c 2a9890. cpp -o /tmp/jakob/ python26_ intermediate/ compiler_ 71e584768071aa3 498d8ed2c780a19 9b/home/ jakob/. python26_ compiled/ sc_6211de8cbbdd 4538661eae1a48c 2a9890. o -O3" failed with exit status 1
starting weavefunc..
In file included from /usr/local/
/usr/local/
/usr/local/
In file included from /usr/local/
/usr/local/
/usr/local/
/usr/include/
/usr/include/
/usr/include/
/usr/local/
/usr/local/
In file included from /usr/local/
/usr/local/
/usr/local/
In file included from /usr/local/
/usr/local/
/usr/local/
/usr/include/
/usr/include/
/usr/include/
/usr/local/
/usr/local/
Traceback (most recent call last):
File "weavetestsingl
weave.
File "/usr/local/
**kw)
File "/usr/local/
verbose=
File "/usr/local/
verbose = verbose, **kw)
File "/usr/local/
setup(name = module_name, ext_modules = [ext],verbose=verb)
File "/usr/local/
return old_setup(
File "/usr/lib/
raise SystemExit, "error: " + str(msg)
scipy.weave.