[Freeswitch-users] Problem importing modules in mod_python

Marc Orenberg marc at kasteris.com
Sun Nov 30 18:42:30 PST 2008

In the latter versions of mod_python, I'm unable to import standard python modules such as time and MySQLdb.  
For example, the following script works fine in version 1.0.1:

        import time
        import os
        from freeswitch import *
        def handler(session, args):
            session.execute("sleep", "2000")

But in freeswitch-1.0.latest.tar.gz, and svn versions 10556-10558, I get the following error:

        2008-11-30 21:13:09 [ERR] mod_python.c:129 eval_some_python() Error reloading module
        Traceback (most recent call last):
        File "/usr/lib/python2.4/site-packages/scripts/test.py", line 1, in ?
        import time
        ImportError: /usr/lib/python2.4/lib-dynload/timemodule.so: undefined symbol: PyExc_ValueError

Thanks for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081130/407001ed/attachment-0002.html 

More information about the FreeSWITCH-users mailing list