Problem importing modules in mod_python
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.answer() session.execute("sleep", "2000") session.streamFile("/usr/local/freeswitch/prompts/01Welcome.wav") return(session) 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!
participants (1)
-
Marc Orenberg