I am getting this error...i have installed router and ksr via pip.
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
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)Regards,
Hello,
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.
Cheers,
Daniel
On 25.01.19 08:18, Prabhat Kumar wrote:
Hi,I am getting this error message while starting kamailio.
Enviroment: OS- Ubuntu 16.04.5 LTS (Xenial Xerus)python 2.7
ERROR: app_python [app_python_mod.c:164]: mod_init(): failed to load python scriptERROR: <core> [core/sr_module.c:990]: init_mod(): Error while initializingmodule app_python (/usr/local/lib64/kamailio/modules/app_python.so)
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com