Hello, On 13/11/14 11:52, Olle E. Johansson wrote: > Found the issue. > > The app_python.so has a init_modules() function that collides with the core. > So suddenly app_python calls the core > init_modules and not it's very own function and things go bad. Something that > happened after 3.3.2. > > I will commit a patch to master for testing, but we need to integrate this > into all 4.x releases.
go ahead and backport. Cheers, Daniel > > /O > > On 13 Nov 2014, at 10:01, Olle E. Johansson <[email protected]> wrote: > >> Friends, >> >> app_python in 4.2 fails to initialize on both OS/X, FreeBSD and Centos 6 >> Linux. >> >> 0(18630) ERROR: app_python [python_support.c:132]: >> python_handle_exception(): mod_init: Unhandled exception in the Python code: >> AttributeError: init_modules() has failed >> 0(18630) ERROR: <core> [sr_module.c:968]: init_mod(): Error while >> initializing module app_python >> (/usr/local/lib64/kamailio/modules/app_python.so) >> ERROR: error while initializing modules >> >> >> This is before even trying to parse the python file. We've tested with >> FreeBSD 10 /Python 2.7.8, OS/X with Python 2.7.3, Centos 6 with Python 2.6.6 >> >> I will try to use my Kamailio Time Machine (TM) and see if we can go back in >> releases and see what happened. We had a running Kamailio 3.3.2 on FreeBSD >> with app_python that we tried to update. >> >> If you have any hints, please let me know. >> >> I think we need to call for volunteers to build some sort of test rig for >> new releases. >> >> /O > > _______________________________________________ > sr-dev mailing list > [email protected] > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Nov 24-27, Berlin - http://www.asipto.com _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
