[SciPy-user] weave, new scipy, and ubuntu

Ryan Krauss ryanlists at gmail.com
Thu Dec 8 13:37:02 CST 2005


I am trying to run some code under new scipy that worked under old
scipy.  I am using weave and I get a very long error message the end
of which is:

/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.h:271:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:
In function 'void calcStencilExtent(T_extent&, const T_stencil&, const
Array<T_numtype1, N_rank>&, const T_array2&, const T_array3&, const
T_array4&, const T_array5&, const T_array6&, const T_array7&, const
T_array8&, const T_array9&, const T_array10&, const T_array11&)':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:95:
error: expected `;' before 'Bt'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:96:
error: expected `;' before 'Ct'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:97:
error: expected `;' before 'Dt'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:98:
error: expected `;' before 'Et'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:99:
error: expected `;' before 'Ft'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:100:
error: expected `;' before 'Gt'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:101:
error: expected `;' before 'Ht'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:102:
error: expected `;' before 'It'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:103:
error: expected `;' before 'Jt'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:104:
error: expected `;' before 'Kt'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Bt' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Ct' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Dt' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Et' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Ft' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Gt' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Ht' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'It' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Jt' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:106:
error: 'Kt' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:
In function 'void applyStencil_imp(const T_stencil&, Array<T_numtype1,
3>&, T_array2&, T_array3&, T_array4&, T_array5&, T_array6&, T_array7&,
T_array8&, T_array9&, T_array10&, T_array11&)':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:222:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:223:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:224:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:226:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:227:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:228:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:239:
error: expected `;' before 'Biter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:240:
error: expected `;' before 'Citer'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:241:
error: expected `;' before 'Diter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:242:
error: expected `;' before 'Eiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:243:
error: expected `;' before 'Fiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:244:
error: expected `;' before 'Giter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:245:
error: expected `;' before 'Hiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:246:
error: expected `;' before 'Iiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:247:
error: expected `;' before 'Jiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:248:
error: expected `;' before 'Kiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:252:
error: 'Biter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:253:
error: 'Citer' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:254:
error: 'Diter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:255:
error: 'Eiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:256:
error: 'Fiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:257:
error: 'Giter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:258:
error: 'Hiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:259:
error: 'Iiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:260:
error: 'Jiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:261:
error: 'Kiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:
In function 'void applyStencil_imp(const T_stencil&, Array<T_numtype1,
2>&, T_array2&, T_array3&, T_array4&, T_array5&, T_array6&, T_array7&,
T_array8&, T_array9&, T_array10&, T_array11&)':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:328:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:329:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:331:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:332:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:342:
error: expected `;' before 'Biter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:343:
error: expected `;' before 'Citer'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:344:
error: expected `;' before 'Diter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:345:
error: expected `;' before 'Eiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:346:
error: expected `;' before 'Fiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:347:
error: expected `;' before 'Giter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:348:
error: expected `;' before 'Hiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:349:
error: expected `;' before 'Iiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:350:
error: expected `;' before 'Jiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:351:
error: expected `;' before 'Kiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:355:
error: 'Biter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:356:
error: 'Citer' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:357:
error: 'Diter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:358:
error: 'Eiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:359:
error: 'Fiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:360:
error: 'Giter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:361:
error: 'Hiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:362:
error: 'Iiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:363:
error: 'Jiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:364:
error: 'Kiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:
In function 'void applyStencil_imp(const T_stencil&, Array<T_numtype1,
1>&, T_array2&, T_array3&, T_array4&, T_array5&, T_array6&, T_array7&,
T_array8&, T_array9&, T_array10&, T_array11&)':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:425:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:426:
error: 'minmax' has not been declared
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:435:
error: expected `;' before 'Biter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:436:
error: expected `;' before 'Citer'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:437:
error: expected `;' before 'Diter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:438:
error: expected `;' before 'Eiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:439:
error: expected `;' before 'Fiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:440:
error: expected `;' before 'Giter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:441:
error: expected `;' before 'Hiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:442:
error: expected `;' before 'Iiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:443:
error: expected `;' before 'Jiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:444:
error: expected `;' before 'Kiter'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:448:
error: 'Biter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:449:
error: 'Citer' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:450:
error: 'Diter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:451:
error: 'Eiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:452:
error: 'Fiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:453:
error: 'Giter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:454:
error: 'Hiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:455:
error: 'Iiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:456:
error: 'Jiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/stencils.cc:457:
error: 'Kiter' was not declared in this scope
/usr/lib/python2.4/site-packages/scipy/weave/scxx/object.h: At global scope:
/usr/lib/python2.4/site-packages/scipy/weave/scxx/object.h:85: error:
'py::object::object(int)' cannot be overloaded
/usr/lib/python2.4/site-packages/scipy/weave/scxx/object.h:82: error:
with 'py::object::object(int)'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:644:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:645:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:646:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:646:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:646:
error: no matching function for call to 'all()'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:649:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:
In function 'Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*,
const char*)':
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:651:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:652:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:661:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:662:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:
At global scope:
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:666:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:
In function 'Array<P_numtype, N_rank> py_to_blitz(PyArrayObject*,
const char*)':
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:669:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:670:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:679:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:680:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:
In function 'PyObject* compiled_func(PyObject*, PyObject*)':
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:706:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:707:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:712:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:713:
error: 'blitz' has not been declared
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:722:
error: no match for call to '(py::object) (int&, int&)'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 1]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:201:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 2]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:204:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 3]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:207:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 4]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:210:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 5]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:213:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 6]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:216:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 7]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:219:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 8]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:222:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 9]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:225:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 10]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:228:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:
In constructor 'FortranArray<N_rank>::FortranArray() [with int N_rank
= 11]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:231:
instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/storage.h:181:
error: expected primary-expression
/usr/include/c++/4.0.2/bits/basic_ios.h: In member function '_CharT
std::basic_ios<_CharT, _Traits>::fill() const [with _CharT = char,
_Traits = std::char_traits<char>]':
/usr/include/c++/4.0.2/bits/ostream.tcc:629:   instantiated from
'std::basic_ostream<char, _Traits>&
std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with
_Traits = std::char_traits<char>]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/range.h:173: 
 instantiated from here
/usr/include/c++/4.0.2/bits/basic_ios.h:360: error: assignment of
data-member 'std::basic_ios<char, std::char_traits<char> >::_M_fill'
in read-only structure
/usr/include/c++/4.0.2/bits/basic_ios.h:361: error: assignment of
data-member 'std::basic_ios<char, std::char_traits<char>
>::_M_fill_init' in read-only structure
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/tvecglobs.h:
In function 'T_numtype1 product(const TinyVector<P_numtype,
N_length>&) [with T_numtype1 = int, int N_length = 1]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array-impl.h:392:
  instantiated from 'Array<T, N>::Array(P_numtype*, TinyVector<int,
N_destRank>, TinyVector<int, N_destRank>, preexistingMemoryPolicy,
GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank =
1]'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:662:
  instantiated from 'Array<P_numtype, N_rank>
convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N
= 1]'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:706:
  instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/tvecglobs.h:68:
error: 'f' is not a member of '_bz_meta_vectorProduct<1, 0>'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/ops.cc:
In member function 'Array<P_numtype, N_rank>& Array<T,
N>::operator=(const ETBase<T_expr>&) [with T_expr =
_bz_ArrayExpr<FastArrayIterator<double, 1> >, P_numtype = double, int
N_rank = 1]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/ops.cc:60:
  instantiated from 'Array<P_numtype, N_rank>& Array<T,
N>::operator=(const Array<T, N>&) [with P_numtype = double, int N_rank
= 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/methods.cc:271:
 instantiated from 'Array<P_numtype, N_rank> Array<T, N>::copy() const
[with P_numtype = double, int N_rank = 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array-impl.h:402:
  instantiated from 'Array<T, N>::Array(P_numtype*, TinyVector<int,
N_destRank>, TinyVector<int, N_destRank>, preexistingMemoryPolicy,
GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank =
1]'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:662:
  instantiated from 'Array<P_numtype, N_rank>
convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N
= 1]'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:706:
  instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/ops.cc:51:
error: no type named 'T_numtype' in 'class
_bz_ArrayExpr<FastArrayIterator<double, 1> >'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/tvecglobs.h:
In function 'T_numtype1 dot(const TinyVector<T_numtype1, N_length>&,
const TinyVector<T_numtype2, N_length>&) [with T_numtype1 = int,
T_numtype2 = int, int N_length = 1]':
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array-impl.h:872:
  instantiated from 'int Array<T, N>::dataOffset() const [with
P_numtype = double, int N_rank = 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array-impl.h:876:
  instantiated from 'const P_numtype* Array<T, N>::data() const [with
P_numtype = double, int N_rank = 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/fastiter.h:70:
instantiated from 'FastArrayIterator<T_numtype,
N_rank>::FastArrayIterator(const Array<P_numtype, N_rank>&) [with
P_numtype = double, int N_rank = 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array-impl.h:848:
  instantiated from 'FastArrayIterator<P_numtype, N_rank> Array<T,
N>::beginFast() const [with P_numtype = double, int N_rank = 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/ops.cc:60:
  instantiated from 'Array<P_numtype, N_rank>& Array<T,
N>::operator=(const Array<T, N>&) [with P_numtype = double, int N_rank
= 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array/methods.cc:271:
 instantiated from 'Array<P_numtype, N_rank> Array<T, N>::copy() const
[with P_numtype = double, int N_rank = 1]'
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/array-impl.h:402:
  instantiated from 'Array<T, N>::Array(P_numtype*, TinyVector<int,
N_destRank>, TinyVector<int, N_destRank>, preexistingMemoryPolicy,
GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank =
1]'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:662:
  instantiated from 'Array<P_numtype, N_rank>
convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N
= 1]'
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp:706:
  instantiated from here
/usr/lib/python2.4/site-packages/scipy/weave/blitz/blitz/tvecglobs.h:47:
error: 'f' is not a member of '_bz_meta_vectorDot<1, 0>'
---------------------------------------------------------------------------
build_tools.CompileError                              Traceback (most
recent call last)

/home/ryan/control_design/fortran_test/fortran_dev.py
     71 rwkbode.GenBodePlot(1,freq,mybode1)
     72
---> 73 mybodes=mysystem.BodeResponse(freq)
     74 rwkbode.GenBodePlot(1,freq,mybodes[0],clear=False)
     75

/home/ryan/rwkpython/TMM/__init__.py in BodeResponse(self, fvect)
   1099             elif bodedict.post.lower()=='vel':
   1100                 tempcomp=tempcomp*svect
-> 1101            
bodes.append(rwkbode.rwkbode(bodedict.output,bodedict.input,compin=tempcomp))
   1102         return bodes
   1103

/home/ryan/rwkpython/rwkbode/__init__.py in __init__(self, output,
input, mag, phase, coh, freqlim, maglim, phaselim, averaged, seedfreq,
seedphase, labels, legloc, compin)
     45             self.mag=colwise(abs(compin))
     46 #           
self.phase=colwise(mat_atan2(imag(compin),real(compin))*180.0/pi)
---> 47            
self.phase=colwise(mat_atan2_c(imag(compin),real(compin))*180.0/pi)
     48         else:
     49             self.mag=mag

/home/ryan/rwkpython/rwkdataproc.py in mat_atan2_c(y, x)
    673                         type_converters = cblitz,
    674                         compiler='gcc',
--> 675                         verbose = 1)
    676     return outmat
    677

/usr/lib/python2.4/site-packages/scipy/weave/inline_tools.py in
inline(code, arg_names, local_dict, global_dict, force, compiler,
verbose, support_code, headers, customize, type_converters,
auto_downcast, **kw)
    332                                     customize=customize,
    333                                     type_converters = type_converters,
--> 334                                     auto_downcast = auto_downcast,
    335                                     **kw)
    336

/usr/lib/python2.4/site-packages/scipy/weave/inline_tools.py in
compile_function(code, arg_names, local_dict, global_dict, module_dir,
compiler, verbose, support_code, headers, customize, type_converters,
auto_downcast, **kw)
    440     # setting.  All input keywords are passed through to distutils
    441     mod.compile(location=storage_dir,compiler=compiler,
--> 442                 verbose=verbose, **kw)
    443
    444     # import the module and return the function.  Make sure

/usr/lib/python2.4/site-packages/scipy/weave/ext_tools.py in
compile(self, location, compiler, verbose, **kw)
    351         success = build_tools.build_extension(file, temp_dir = temp,
    352                                               compiler_name = compiler,
--> 353                                               verbose = verbose, **kw)
    354         if not success:
    355             raise SystemError, 'Compilation failed'

/usr/lib/python2.4/site-packages/scipy/weave/build_tools.py in
build_extension(module_path, compiler_name, build_dir, temp_dir,
verbose, **kw)
    272         environ = copy.deepcopy(os.environ)
    273         try:
--> 274             setup(name = module_name, ext_modules = [ext],verbose=verb)
    275         finally:
    276             # restore state

/usr/lib/python2.4/site-packages/scipy/distutils/core.py in setup(**attr)
     91         new_attr['data_files'] = new_data_files
     92
---> 93     return old_setup(**new_attr)
     94
     95 def _check_append_library(libraries, item):

/usr/lib/python2.4/distutils/core.py in setup(**attrs)
    164                 raise
    165             else:
--> 166                 raise SystemExit, "error: " + str(msg)
    167
    168     return dist

CompileError: error: Command "g++ -pthread -fno-strict-aliasing
-DNDEBUG -g -O3 -Wstrict-prototypes -fPIC
-I/usr/lib/python2.4/site-packages/scipy/weave
-I/usr/lib/python2.4/site-packages/scipy/weave/scxx
-I/usr/lib/python2.4/site-packages/scipy/weave/blitz
-I/usr/lib/python2.4/site-packages/scipy/base/include
-I/usr/include/python2.4 -c
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.cpp
-o /tmp/ryan/python24_intermediate/compiler_fcf4821de2ee87a8ad4d6579aeaebbc9/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755121.o"
failed with exit status 1
WARNING: Failure executing file: <fortran_dev.py>

In [19]:


What should I do?

Ryan



More information about the SciPy-user mailing list