Ok, I disabled WITH_MYSQL and left loadmodule "app_python.so" at the end of all the other loadmodule directive and here is the output:
0(3572) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3572) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: mi_fifo
0(3572) DEBUG: mi_fifo [mi_fifo.c:124]: testing mi_fifo existance ...
0(3572) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: kex
0(3572) DEBUG: <core> [sruid.c:100]: root for sruid is [srid-51b9d8fb-df4-] (0 / 18)
0(3572) ERROR: <core> [mi.c:159]: command <uptime> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <uptime> for module core
0(3572) ERROR: <core> [mi.c:159]: command <version> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <version> for module core
0(3572) ERROR: <core> [mi.c:159]: command <pwd> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <pwd> for module core
0(3572) ERROR: <core> [mi.c:159]: command <arg> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <arg> for module core
0(3572) ERROR: <core> [mi.c:159]: command <which> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <which> for module core
0(3572) ERROR: <core> [mi.c:159]: command <kill> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <kill> for module core
0(3572) ERROR: <core> [mi.c:159]: command <ps> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <ps> for module core
0(3572) ERROR: <core> [mi.c:159]: command <debug> already registered
0(3572) ERROR: <core> [mi.c:94]: failed to register cmd <debug> for module core
0(3572) ERROR: <core> [kstats_wrapper.c:73]: counter core.rcv_requests already registered
0(3572) ERROR: <core> [kstats_wrapper.c:99]: failed to add statistic core.rcv_requests
0(3572) ERROR: kex [core_stats.c:179]: failed to register core statistics
0(3572) ERROR: <core> [sr_module.c:939]: init_mod(): Error while initializing module kex (/usr/lib64/kamailio/modules/kex.so)
0(3572) ERROR: app_python [python_support.c:132]: mod_init: Unhandled exception in the Python code:
AttributeError: init_modules() has failed
0(3572) ERROR: <core> [sr_module.c:939]: init_mod(): Error while initializing module app_python (/usr/lib64/kamailio/modules/app_python.so)
ERROR: error while initializing modules
Now, seeing that key.so module was now failing, which I never saw before, I put the loadmodule for python ABOVE mi_fifo and key and here is the result:
*snip* thousands of line of the same message
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
0(3595) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: app_python
Segmentation fault (core dumped)
Any ideas at this point ?
Best regards,