[C++-sig] Re: to_python (by-value) converter

David Abrahams dave at boost-consulting.com
Thu Sep 11 17:43:59 CEST 2003


Simon Ouellet <simon.ouellet at orthosoft.ca> writes:

> I attached a complete reproducible test case.
> The ouptut that I got is:
>
> The following error occur in python converter:
> ================================================
> TypeError: No to_python (by-value) converter found for C++ type: 3Foo
> ================================================
> 3
> The following error occur in python interpreter:
> ================================================
> Traceback (most recent call last):
>   File "<string>", line 4, in ?
> NameError: name 'SomeFoo' is not defined
> ================================================


It works perfectly fine for me (with the current CVS state).  Are you
using Boost.Build or getting "creative" with your build?

myjam -sext=1 -sTOOLS=vc7.1 -sBUILD=debug-python --verbose-test ext
...found 2123 targets...
...updating 4 targets...
vc-Link c:\build\bin\boost\libs\python\user\ext.test\vc7.1\debug-python\ext.exe
   Creating library c:\build\bin\boost\libs\python\user\ext.test\vc7.1\debug-python\ext.lib and object c:\build\bin\boost\libs\python\user\ext.test\vc7.1\debug-python\ext.exp
execute-test c:\build\bin\boost\libs\python\user\ext.test\vc7.1\debug-python\ext.run
        1 file(s) copied.
====== BEGIN OUTPUT ====== 
The following error occur in python converter:
================================================
================================================
The following error occur in python interpreter:
================================================
3
================================================
====== END OUTPUT ======  
**passed** c:\build\bin\boost\libs\python\user\ext.test\vc7.1\debug-python\ext.test
...updated 4 targets...

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list