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

Simon Ouellet simon.ouellet at orthosoft.ca
Thu Sep 11 20:33:04 CEST 2003


On Thu, 2003-09-11 at 11:43, David Abrahams wrote:
> 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?
> 

I'm using g++3.2  on linux and  CC MIPSpro Version 7.3.1.3m on IRIX.
I'm using boost_30.2 and I got the error on both platforms.


I compile the example with those command:

g++  -D_REENTRANT -I/usr/local/include -I/usr/local/include/python2.2
-DBOOST_PYTHON_DYNAMIC_LIB -Wall -ansi -pedantic -ggdb -D DEBUG -c
Embedded.cc -o Embedded.o

g++ -L/usr/local/ORTHOsoft/lib -o Embedded Embedded.o -lboost_python
-L/usr/local/lib/python2.2/config -lpython2.2 -lutil -ldl -lpthread

Thanks

> 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
> 
> 
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
-- 
_________________________________________________________
Simon Ouellet		email: simon.ouellet at orthosoft.ca
Programmeur 		tel:   514-861-4074 #269
Orthosoft Inc.		fax:   514-866-2197






More information about the Cplusplus-sig mailing list