Boost logo

Boost Users :

Subject: [Boost-users] I Can't Compile The QuickStart Example (Part 2)
From: Fagner Patricio (fagner.patricio_at_[hidden])
Date: 2009-03-09 07:42:01


Hello Everybody again!!!

Now I'm using the newest version of the boost library ( 1.38.0) I Download
it from sourceforge, I have some problem, it compile but don't create the
extension module called extending

thie my output:

*fagner_at_fagner-desktop:~/Downloads/boost_1_38_0/libs/python/example/quickstart$
bjam toolset=gcc --verbose-teste test --debug-configuration*
notice: found boost-build.jam at
/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/boost-build.jam
notice: loading Boost.Build from
/home/fagner/Downloads/boost_1_38_0/tools/build/v2
notice: Searching /etc /home/fagner /usr/share/boost-build
/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/../../../../tools/build/v2
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/kernel
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/util
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/build
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/tools
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/contrib
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/. for site-config
configuration file site-config.jam .
notice: Loading site-config configuration file site-config.jam from
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/site-config.jam .
notice: Searching /home/fagner /usr/share/boost-build
/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/../../../../tools/build/v2
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/kernel
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/util
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/build
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/tools
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/contrib
/home/fagner/Downloads/boost_1_38_0/tools/build/v2/. for user-config
configuration file user-config.jam .
notice: Loading user-config configuration file user-config.jam from
/home/fagner/user-config.jam .
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "2.5"
notice: [python-cfg] Checking interpreter command "python2.5"...
notice: [python-cfg] running command '"python2.5" -c "from sys import *;
print 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s'
% (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python2.5"
notice: [python-cfg] include path: "/usr/include/python2.5"
notice: [python-cfg] library path: "/usr/lib/python2.5/config" "/usr/lib"
notice: [cmdline-cfg] Detected command-line request for gcc: toolset= gcc
version=
notice: [cmdline-cfg] toolset gcc not previously configured; attempting to
auto-configure now
notice: will use 'g++' for gcc, condition <toolset>gcc-4.2.4
notice: using gcc libraries :: <toolset>gcc-4.2.4 :: /usr/bin /usr/lib
/usr/lib32 /usr/lib64
notice: using gcc archiver :: <toolset>gcc-4.2.4 :: /usr/bin/ar
warning: toolset gcc initialization: can not find tool windres
warning: initialized from
notice: using rc compiler :: <toolset>gcc-4.2.4 :: /usr/bin/as
notice: iostreams: using prebuilt zlib
notice: iostreams: using prebuilt bzip2
...patience...
...patience...
...found 1356 targets...
...updating 54 targets...
common.mkdir bin
common.mkdir bin/test_ext.test
common.mkdir bin/test_ext.test/gcc-4.2.4
common.mkdir bin/test_ext.test/gcc-4.2.4/debug
common.mkdir bin/gcc-4.2.4
common.mkdir bin/gcc-4.2.4/debug
gcc.compile.c++ bin/gcc-4.2.4/debug/extending.o
common.mkdir ../../../../bin.v2
common.mkdir ../../../../bin.v2/libs
common.mkdir ../../../../bin.v2/libs/python
common.mkdir ../../../../bin.v2/libs/python/build
common.mkdir ../../../../bin.v2/libs/python/build/gcc-4.2.4
common.mkdir ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/numeric.o
gcc.compile.c++ ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/list.o
../../../../libs/python/src/list.cpp: In static member function ‘static
boost::python::detail::new_non_null_reference_t*
boost::python::detail::list_base::call(const boost::python::api::object&)’:
../../../../libs/python/src/list.cpp:17: aviso: deprecated conversion from
string constant to ‘char*’
gcc.compile.c++ ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/long.o
../../../../libs/python/src/long.cpp: In static member function ‘static
boost::python::detail::new_non_null_reference_t*
boost::python::detail::long_base::call(const boost::python::api::object&)’:
../../../../libs/python/src/long.cpp:13: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/long.cpp: In static member function ‘static
boost::python::detail::new_non_null_reference_t*
boost::python::detail::long_base::call(const boost::python::api::object&,
const boost::python::api::object&)’:
../../../../libs/python/src/long.cpp:20: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/long.cpp: In constructor
‘boost::python::detail::long_base::long_base()’:
../../../../libs/python/src/long.cpp:26: aviso: deprecated conversion from
string constant to ‘char*’
gcc.compile.c++ ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/dict.o
../../../../libs/python/src/dict.cpp: In static member function ‘static
boost::python::detail::new_reference_t*
boost::python::detail::dict_base::call(const boost::python::api::object&)’:
../../../../libs/python/src/dict.cpp:33: aviso: deprecated conversion from
string constant to ‘char*’
gcc.compile.c++ ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/tuple.o
../../../../libs/python/src/tuple.cpp: In static member function ‘static
boost::python::detail::new_reference_t*
boost::python::detail::tuple_base::call(const boost::python::api::object&)’:
../../../../libs/python/src/tuple.cpp:13: aviso: deprecated conversion from
string constant to ‘char*’
gcc.compile.c++ ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/str.o
../../../../libs/python/src/str.cpp: In static member function ‘static
boost::python::detail::new_reference_t*
boost::python::detail::str_base::call(const boost::python::api::object&)’:
../../../../libs/python/src/str.cpp:14: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In function ‘boost::python::ssize_t
boost::python::detail::<unnamed>::str_size_as_py_ssize_t(size_t)’:
../../../../libs/python/src/str.cpp:29: aviso: comparison between signed and
unsigned integer expressions
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::capitalize() const’:
../../../../libs/python/src/str.cpp:76: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:76: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::center(const boost::python::api::object&)
const’:
../../../../libs/python/src/str.cpp:77: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:77: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::expandtabs() const’:
../../../../libs/python/src/str.cpp:132: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:132: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::expandtabs(const
boost::python::api::object&) const’:
../../../../libs/python/src/str.cpp:133: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:133: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::join(const boost::python::api::object&)
const’:
../../../../libs/python/src/str.cpp:239: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:239: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::ljust(const boost::python::api::object&)
const’:
../../../../libs/python/src/str.cpp:240: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:240: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::lower() const’:
../../../../libs/python/src/str.cpp:241: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:241: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::lstrip() const’:
../../../../libs/python/src/str.cpp:242: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:242: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::replace(const boost::python::api::object&,
const boost::python::api::object&) const’:
../../../../libs/python/src/str.cpp:243: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:243: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::replace(const boost::python::api::object&,
const boost::python::api::object&, const boost::python::api::object&)
const’:
../../../../libs/python/src/str.cpp:244: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:244: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::rjust(const boost::python::api::object&)
const’:
../../../../libs/python/src/str.cpp:294: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:294: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::rstrip() const’:
../../../../libs/python/src/str.cpp:295: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:295: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::strip() const’:
../../../../libs/python/src/str.cpp:346: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:346: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::swapcase() const’:
../../../../libs/python/src/str.cpp:347: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:347: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::title() const’:
../../../../libs/python/src/str.cpp:348: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:348: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::translate(const
boost::python::api::object&) const’:
../../../../libs/python/src/str.cpp:349: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:349: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::translate(const
boost::python::api::object&, const boost::python::api::object&) const’:
../../../../libs/python/src/str.cpp:350: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:350: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp: In member function ‘boost::python::str
boost::python::detail::str_base::upper() const’:
../../../../libs/python/src/str.cpp:351: aviso: deprecated conversion from
string constant to ‘char*’
../../../../libs/python/src/str.cpp:351: aviso: deprecated conversion from
string constant to ‘char*’
gcc.compile.c++ ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/slice.o
common.mkdir ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/converter
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/converter/from_python.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/converter/registry.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/converter/type_id.o
common.mkdir ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/enum.o
../../../../libs/python/src/object/enum.cpp:28: aviso: deprecated conversion
from string constant to ‘char*’
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/class.o
../../../../libs/python/src/object/class.cpp: In function ‘PyObject*
boost::python::static_data_descr_get(PyObject*, PyObject*, PyObject*)’:
../../../../libs/python/src/object/class.cpp:77: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp: In function ‘int
boost::python::static_data_descr_set(PyObject*, PyObject*, PyObject*)’:
../../../../libs/python/src/object/class.cpp:98: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp:100: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp: At global scope:
../../../../libs/python/src/object/class.cpp:362: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp:368: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp: In function
‘boost::python::api::object
boost::python::objects::<unnamed>::new_class(const char*, size_t, const
boost::python::type_info*, const char*)’:
../../../../libs/python/src/object/class.cpp:510: aviso: comparison between
signed and unsigned integer expressions
../../../../libs/python/src/object/class.cpp: In member function ‘void
boost::python::objects::class_base::add_property(const char*, const
boost::python::api::object&, const char*)’:
../../../../libs/python/src/object/class.cpp:575: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp: In member function ‘void
boost::python::objects::class_base::add_property(const char*, const
boost::python::api::object&, const boost::python::api::object&, const
char*)’:
../../../../libs/python/src/object/class.cpp:585: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp: In member function ‘void
boost::python::objects::class_base::add_static_property(const char*, const
boost::python::api::object&)’:
../../../../libs/python/src/object/class.cpp:594: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/class.cpp: In member function ‘void
boost::python::objects::class_base::add_static_property(const char*, const
boost::python::api::object&, const boost::python::api::object&)’:
../../../../libs/python/src/object/class.cpp:603: aviso: deprecated
conversion from string constant to ‘char*’
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/function.o
../../../../libs/python/src/object/function.cpp: In member function
‘PyObject* boost::python::objects::function::call(PyObject*, PyObject*)
const’:
../../../../libs/python/src/object/function.cpp:169: aviso: comparison
between signed and unsigned integer expressions
../../../../libs/python/src/object/function.cpp: In member function ‘void
boost::python::objects::function::argument_error(PyObject*, PyObject*)
const’:
../../../../libs/python/src/object/function.cpp:300: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/function.cpp: At global scope:
../../../../libs/python/src/object/function.cpp:665: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/function.cpp:665: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/function.cpp:665: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/function.cpp:665: aviso: deprecated
conversion from string constant to ‘char*’
../../../../libs/python/src/object/function.cpp:665: aviso: deprecated
conversion from string constant to ‘char*’
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/inheritance.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/life_support.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/pickle_support.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/errors.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/module.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/converter/builtin_converters.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/converter/arg_to_python_base.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/iterator.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/stl_iterator.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object_protocol.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object_operators.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/wrapper.o
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/import.o
gcc.compile.c++ ../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/exec.o
../../../../libs/python/src/exec.cpp: In function
‘boost::python::api::object boost::python::exec_file(boost::python::str,
boost::python::api::object, boost::python::api::object)’:
../../../../libs/python/src/exec.cpp:42: aviso: deprecated conversion from
string constant to ‘char*’
gcc.compile.c++
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/object/function_doc_signature.o
gcc.link.dll
../../../../bin.v2/libs/python/build/gcc-4.2.4/debug/libboost_python-gcc42-d-1_38.so.1.38.0
gcc.link.dll bin/gcc-4.2.4/debug/extending.so
capture-output bin/test_ext.test/gcc-4.2.4/debug/test_ext
**passed** bin/test_ext.test/gcc-4.2.4/debug/test_ext.test
common.mkdir bin/test_embed.test
common.mkdir bin/test_embed.test/gcc-4.2.4
common.mkdir bin/test_embed.test/gcc-4.2.4/debug
gcc.compile.c++ bin/gcc-4.2.4/debug/embedding.o
embedding.cpp: In function ‘void exec_test()’:
embedding.cpp:56: aviso: deprecated conversion from string constant to
‘char*’
gcc.link bin/gcc-4.2.4/debug/embedding
testing.capture-output bin/test_embed.test/gcc-4.2.4/debug/test_embed.run
**passed** bin/test_embed.test/gcc-4.2.4/debug/test_embed.test
...updated 54 targets...
*fagner_at_fagner-desktop:~/Downloads/boost_1_38_0/libs/python/example/quickstart$
*

*fagner_at_fagner-desktop:~/Downloads/boost_1_38_0/libs/python/example/quickstart$
ls*
bin boost-build.jam embedding.cpp extending.cpp Jamroot script.py
test_extending.py test_extending.pyc
*fagner_at_fagner-desktop:~/Downloads/boost_1_38_0/libs/python/example/quickstart$
*

*fagner_at_fagner-desktop:~/Downloads/boost_1_38_0/libs/python/example/quickstart$
python2.5 test_extending.py*
Trying:
    from extending import *
Expecting nothing
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 6, in test_extending
Failed example:
    from extending import *
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[0]>", line 1, in <module>
        from extending import *
    ImportError: No module named extending
Trying:
    hi = hello('California')
Expecting nothing
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 7, in test_extending
Failed example:
    hi = hello('California')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[1]>", line 1, in <module>
        hi = hello('California')
    NameError: name 'hello' is not defined
Trying:
    hi.greet()
Expecting:
    'Hello from California'
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 8, in test_extending
Failed example:
    hi.greet()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[2]>", line 1, in <module>
        hi.greet()
    NameError: name 'hi' is not defined
Trying:
    invite(hi)
Expecting:
    'Hello from California! Please come soon!'
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 10, in test_extending
Failed example:
    invite(hi)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[3]>", line 1, in <module>
        invite(hi)
    NameError: name 'invite' is not defined
Trying:
    hi.invite()
Expecting:
    'Hello from California! Please come soon!'
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 12, in test_extending
Failed example:
    hi.invite()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[4]>", line 1, in <module>
        hi.invite()
    NameError: name 'hi' is not defined
Trying:
    class wordy(hello):
        def greet(self):
            return hello.greet(self) + ', where the weather is fine'
Expecting nothing
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 15, in test_extending
Failed example:
    class wordy(hello):
        def greet(self):
            return hello.greet(self) + ', where the weather is fine'
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[5]>", line 1, in <module>
        class wordy(hello):
    NameError: name 'hello' is not defined
Trying:
    hi2 = wordy('Florida')
Expecting nothing
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 19, in test_extending
Failed example:
    hi2 = wordy('Florida')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[6]>", line 1, in <module>
        hi2 = wordy('Florida')
    NameError: name 'wordy' is not defined
Trying:
    hi2.greet()
Expecting:
    'Hello from Florida, where the weather is fine'
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 20, in test_extending
Failed example:
    hi2.greet()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[7]>", line 1, in <module>
        hi2.greet()
    NameError: name 'hi2' is not defined
Trying:
    invite(hi2)
Expecting:
    'Hello from Florida! Please come soon!'
**********************************************************************
File
"/home/fagner/Downloads/boost_1_38_0/libs/python/example/quickstart/test_extending.py",
line 22, in test_extending
Failed example:
    invite(hi2)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest test_extending[8]>", line 1, in <module>
        invite(hi2)
    NameError: name 'invite' is not defined
1 items had no tests:
    test_extending.run
**********************************************************************
1 items had failures:
   9 of 9 in test_extending
9 tests in 2 items.
0 passed and 9 failed.
***Test Failed*** 9 failures.
*fagner_at_fagner-desktop:~/Downloads/boost_1_38_0/libs/python/example/quickstart$
*

Now What is the error?

Thanks for help.

-- 
Fagner Patrício
João Pessoa - PB
Brasil


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net