I am attempting to get weave to work on OSX— and Linux too (RH 9)—
however I am not able to get even the simplest weave.inline calls to
work. On my OSX, box I have Python 2.3 and gcc 3.1 with a working
version of wxPython 2.4.1.2. On my Linux box, I have Python 2.3.3 and
gcc 3.2.2 with wxPython 2.4.2.4. Both give this error (although this
particular message is from my OSX box):
>>> import weave
>>> weave.inline('1+1')
In file included from
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/cxxsupport.cxx:6:
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1143: no
class template named `random_access_iterator' in `std'
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1279: no
class template named `random_access_iterator' in `std'
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1409: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1409: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1409: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1409: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1410: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1410: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1410: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1410: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1411: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1411: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1411: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1411: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1412: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1412: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1412: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1412: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1413: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1413: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1413: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1413: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1414: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1414: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1414: warning: `
typename Py::SeqBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1414: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1416: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1416: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1416: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1416: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1417: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1417: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1417: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1417: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1418: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1418: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1418: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1418: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1419: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1419: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1419: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1419: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1420: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1420: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1420: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1420: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1421: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1421: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1421: warning: `
typename Py::SeqBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:1421: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2348: warning: `
typename Py::MapBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2348: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2348: warning: `
typename Py::MapBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2348: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2349: warning: `
typename Py::MapBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2349: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2349: warning: `
typename Py::MapBase<T>::iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2349: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2350: warning: `
typename Py::MapBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2350: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2350: warning: `
typename Py::MapBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2350: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2351: warning: `
typename Py::MapBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2351: warning: implicit
typename is deprecated, please see the documentation for details
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2351: warning: `
typename Py::MapBase<T>::const_iterator' is implicitly a typename
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/CXX/Objects.hxx:2351: warning: implicit
typename is deprecated, please see the documentation for details
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/inline_tools.py", line 327, in inline
auto_downcast = auto_downcast,
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/inline_tools.py", line 426, in compile_function
verbose=verbose, **kw)
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/ext_tools.py", line 349, in compile
verbose = verbose, **kw)
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/weave/build_tools.py", line 194, in build_extension
setup(name = module_name, ext_modules = [ext],verbose=verb)
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
distutils/core.py", line 166, in setup
raise SystemExit, "error: " + str(msg)
weave.build_tools.CompileError: error: command 'gcc' failed with exit
status 1
What am I doing wrong?
-- Aza Raskin