Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Problem importing modules in mod_python


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
marc at kasteris.com
Guest





PostPosted: Sun Nov 30, 2008 9:45 pm    Post subject: [Freeswitch-users] Problem importing modules in mod_python Reply with quote

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!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services