runtime error in python example

Issue #361 wontfix
tushar vaidya created an issue

# VisualISAM example shows runtime error.. back trace is provided below #


#0  0x00007fffed7022d8 in boost::python::converter::as_to_python_function<gtsam::Point2, boost::python::objects::class_cref_wrapper<gtsam::Point2, boost::python::objects::make_instance<gtsam::Point2, boost::python::objects::value_holder<gtsam::Point2> > > >::convert(void const*) ()
   from /home/ubuntu/gtsam/build/python/handwritten/_gtsampy.so
#1  0x00007fffed736c82 in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<gtsam::Point2 (gtsam::PinholeBaseK<gtsam::Cal3_S2>::*)(gtsam::Point3 const&) const, boost::python::default_call_policies, boost::mpl::vector3<gtsam::Point2, gtsam::PinholeBaseK<gtsam::Cal3_S2>&, gtsam::Point3 const&> > >::operator()(_object*, _object*) () from /home/ubuntu/gtsam/build/python/handwritten/_gtsampy.so
#2  0x00007fffed2ed5cd in boost::python::objects::function::call(_object*, _object*) const () from /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0
#3  0x00007fffed2ed7c8 in ?? () from /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0
#4  0x00007fffed2f5613 in boost::python::handle_exception_impl(boost::function0<void>) () from /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0
#5  0x00007fffed2ea999 in ?? () from /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0
#6  0x00000000004c15bf in PyEval_EvalFrameEx ()
#7  0x00000000004b9ab6 in PyEval_EvalCodeEx ()
#8  0x00000000004c1e6f in PyEval_EvalFrameEx ()
#9  0x00000000004b9ab6 in PyEval_EvalCodeEx ()
#10 0x00000000004eb30f in ?? ()
#11 0x00000000004e5422 in PyRun_FileExFlags ()
#12 0x00000000004e3cd6 in PyRun_SimpleFileExFlags ()
#13 0x0000000000493ae2 in Py_Main ()
#14 0x00007ffff7810830 in __libc_start_main (main=0x4934c0 <main>, argc=2, argv=0x7fffffffe4f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe4e8) at ../csu/libc-start.c:291
#15 0x00000000004933e9 in _start ()

Comments (4)

  1. Frank Dellaert

    We are going to deprecate the boost python wrapper in favor of the new and much more complete cython wrapper. There:

    root@33a2d41b9762:/usr/local/cython/gtsam/tests# export PYTHONPATH=$PYTHONPATH:/usr/local/cython/         
    root@33a2d41b9762:/usr/local/cython/gtsam/tests# python test_VisualISAMExample.py
    .
    ----------------------------------------------------------------------
    Ran 1 test in 0.014s
    
    OK
    
  2. Log in to comment