<div dir="ltr"><pre style="color:rgb(0,0,0)">I am getting this error...i have installed router and ksr via pip.</pre><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">Jan 25 08:49:56 ip-10-0-0-45 /usr/local/sbin/kamailio[6480]: INFO: tls [tls_mod.c:349]: mod_init(): With ECDH-Support!
Jan 25 08:49:56 ip-10-0-0-45 /usr/local/sbin/kamailio[6480]: INFO: tls [tls_mod.c:352]: mod_init(): With Diffie Hellman
Jan 25 08:49:56 ip-10-0-0-45 /usr/local/sbin/kamailio[6480]: INFO: app_python [mod_Logger.c:172]: logger_LM_INFO(): PYTHON mod_init called
Jan 25 08:49:56 ip-10-0-0-45 /usr/local/sbin/kamailio[6480]: ERROR: app_python [python_support.c:150]: python_handle_exception(): mod_init: Unhandled exception in the Python code:#012Traceback (most recent call last):#012 File "/usr/local/etc/kamailio/handler.py", line 20, in mod_init#012 dumpObj(KSR);#012 File "/usr/local/etc/kamailio/handler.py", line 375, in dumpObj#012 KSR.info("obj.%s = %s\n" % (attr, getattr(obj, attr)));#012AttributeError: 'module' object has no attribute 'info'
Jan 25 08:49:56 ip-10-0-0-45 /usr/local/sbin/kamailio[6480]: ERROR: app_python [app_python_mod.c:164]: mod_init(): failed to load python script
</pre><pre style="color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif">Jan 25 08:49:56 ip-10-0-0-45 /usr/local/sbin/kamailio[6480]: ERROR: <core> [core/sr_module.c:990]: init_mod(): Error while initializing module app_python (/usr/local/lib64/kamailio/modules/app_python.so)</span>Regards,<br></pre><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><div><div style="font-family:sans-serif;font-size:small"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 25, 2019 at 2:01 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hello,</p>
<p>set debug=3 in kamailio.cfg and then start again. You should see
a lot of debug messages that should help identifying what is the
actual issue -- might be that the path to the script file is
wrong, or there are not enough access permissions to read the
file.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="gmail-m_3717397911812672513moz-cite-prefix">On 25.01.19 08:18, Prabhat Kumar wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div>I am getting this error message while starting kamailio.</div>
<div><br>
</div>
<div>Enviroment: OS- Ubuntu <span style="color:rgb(0,0,0)">16.04.5
LTS (Xenial Xerus)</span></div>
<div><span style="color:rgb(0,0,0)"> python
2.7</span></div>
<div><br>
</div>
<div>
<pre style="color:rgb(0,0,0)">ERROR: app_python [app_python_mod.c:164]: mod_init(): failed to load python script</pre>
<pre style="color:rgb(0,0,0)">ERROR: <core> [core/sr_module.c:990]: init_mod(): Error while initializing </pre>
<pre style="color:rgb(0,0,0)">module app_python (/usr/local/lib64/kamailio/modules/app_python.so)</pre>
<pre style="color:rgb(0,0,0)"></pre>
<pre style="color:rgb(0,0,0)"></pre>
<div>
<div dir="ltr" class="gmail-m_3717397911812672513gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div style="font-family:sans-serif;font-size:small">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_3717397911812672513mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_3717397911812672513moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_3717397911812672513moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_3717397911812672513moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="gmail-m_3717397911812672513moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="gmail-m_3717397911812672513moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_3717397911812672513moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_3717397911812672513moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_3717397911812672513moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="gmail-m_3717397911812672513moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a></pre>
</div>
</blockquote></div>