[C++-sig] Embedded python, script has no effect

David Abrahams dave at boostpro.com
Wed Jul 23 03:48:46 CEST 2008


on Tue Jul 22 2008, FoxMulder900 <foxmulder900-AT-yahoo.com> wrote:

>> 
>> Sounds very much like this exception is not the translation of a Python 
>> exception, but rather is being thrown by some ordinary C++ code.  Most 
>> debuggers will let you breakpoint on throw; you might try to find out
>> where
>> 
>> it's coming from.
>> 
>> 
>
> Alright, i did a little debugging and I realized it is throwing the
> following error:
> boost::python::error_already_set at memory location
> on this line:
> boost::python::object main_module = boost::python::import("C:\Documents and
> Settings\New user\Desktop\YEI3D\trunk\YEI3Dv2\pyYEI3D");
>
> the original std::invalid_argument error must have been a fluke, because i
> am no longer getting that error

Well, then, PyErr_Print should be giving you some output now (?)

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com



More information about the Cplusplus-sig mailing list