<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt;color:#000000;"><DIV>In the latter versions of mod_python, I'm unable to import standard python modules such as time and MySQLdb. </DIV>
<DIV>For example, the following script works fine in version 1.0.1:</DIV>
<DIV> </DIV>
<DIV> import time<BR> import os<BR> from freeswitch import *</DIV>
<DIV> def handler(session, args):<BR> session.answer()<BR> session.execute("sleep", "2000")<BR> session.streamFile("/usr/local/freeswitch/prompts/01Welcome.wav")<BR> return(session)<BR></DIV>
<DIV>But in <A href="http://files.freeswitch.org/freeswitch-1.0.latest.tar.gz">freeswitch-1.0.latest.tar.gz</A>, and svn versions 10556-10558, I get the following error:</DIV>
<DIV> </DIV>
<DIV> 2008-11-30 21:13:09 [ERR] mod_python.c:129 eval_some_python() Error reloading module<BR> Traceback (most recent call last):<BR> File "/usr/lib/python2.4/site-packages/scripts/test.py", line 1, in ?<BR> import time<BR> ImportError: /usr/lib/python2.4/lib-dynload/timemodule.so: undefined symbol: PyExc_ValueError<BR></DIV>
<DIV>Thanks for your help!</DIV>
<DIV> </DIV>
<DIV> </DIV></div></body></html>