<div dir="ltr">Update:<div><br></div><div>This seem to happen only the first time mod_python is invoked and <u>session</u> object is used, no mater the script.The other python scripts will work after one (anyone) is used.</div>
<div>As said before, after <u>session</u> object is accessed once, after a restart (giving back the error), everything starts working again.</div><div><br></div><div>Looking forward to hear from you.</div><div><br></div><div>
Best Regards,</div><div class="gmail_extra"><div><p><font color="#1f497d" face="&#39;Trebuchet MS&#39;, sans-serif">--</font></p><p><b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d">Nuno Miguel Reis</span></b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"> | <b>Unified Communication</b></span><b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"> Systems</span></b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>

M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"></span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"></span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>
</span></p><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>

Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:rgb(19,55,112)"><br>

T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:rgb(19,55,112)"><br></span><b><span style="font-size:9.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="http://maps.google.com/maps/ms?msa=0&amp;msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:#1f497d">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d"></span></a></b><p>
<span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>


<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:&#39;Times New Roman&#39;" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
<br><br><div class="gmail_quote">On Mon, Aug 18, 2014 at 7:12 AM, Nuno Reis <span dir="ltr">&lt;<a href="mailto:nreis@wavecom.pt" target="_blank">nreis@wavecom.pt</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi guys.<div><br></div><div>I&#39;m experiencing a weird behavior with the new FS 1.4. Everytime i call a python script in the dialplan after a reboot i always got an error similar to this:</div><div><br></div>

<div><div>2014-08-18 07:03:26.341145 [ERR] mod_python.c:293 Error calling python script</div><div>2014-08-18 07:03:26.341145 [ERR] mod_python.c:164 Python Error by calling script &quot;stable.disa&quot;: &lt;type &#39;exceptions.AttributeError&#39;&gt;</div>

<div>Message: &#39;PySwigObject&#39; object has no attribute &#39;sleep&#39;</div><div><br></div><div>This only happens with the first call after a restart. After that everything works fine.</div><div>I never saw this in FS 1.2</div>

<div><br></div><div>Any ideas on why?</div><div>Thanks.</div><div><br></div><div><b><u>Note:</u></b> I&#39;m using FS Version 1.4.8  64bit</div><div><br></div><div>Cheers,</div><div><p><font color="#1f497d" face="&#39;Trebuchet MS&#39;, sans-serif">--</font></p>

<p><b><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(31,73,125)">Nuno Miguel Reis</span></b><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)"> | <b>Unified Communication</b></span><b><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(31,73,125)"> Systems</span></b><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)"><br>


M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif"></span><span style="font-size:10pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(31,73,125)"></span><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)"><br>

</span></p><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)"><br>


Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)"><br>


T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(19,55,112)"><br></span><b><span style="font-size:9pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:rgb(31,73,125)"><a href="http://maps.google.com/maps/ms?msa=0&amp;msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:rgb(31,73,125)">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)"></span></a></b><p>

<span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>



<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:&#39;Times New Roman&#39;" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
</div></div>
</blockquote></div><br></div></div>