<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<font style="" face="Verdana">Hello !</font><font style="" face="Verdana"><br></font><font style="" face="Verdana">I would extend embedded python, so the code is in the main :</font><font style="" face="Verdana"><br></font><font style="" face="Verdana">int main(int argc, char* argv[])</font><font style="" face="Verdana"><br></font><font style="" face="Verdana">{</font><font style="" face="Verdana"><br></font><font style="" face="Verdana">&nbsp;&nbsp;&nbsp; Py_Initialize();</font><font style="" face="Verdana"><br><br>&nbsp;&nbsp;&nbsp; object main_module((handle&lt;&gt;(borrowed(PyImport_AddModule("__main__")))));</font><font style="" face="Verdana"><br>&nbsp; &nbsp; object main_namespace = main_module.attr("__dict__");</font><font style="" face="Verdana"><br></font><font style="" face="Verdana">}</font><br><br>I've read that the error is specific to Mac OSX in this case, but the post was very old.<br>Thanks,<br>Alexandre MONTI<br>                                               <br /><hr />Vous voulez protéger votre vie privée ? <a href='http://clk.atdmt.com/FRM/go/232102477/direct/01/' target='_new'>La solution avec Internet Explorer 8</a></body>
</html>