we no longer use global name space in our shared objects which seems to have a side effect on modules who in turn try to load it&#39;s own shared objects because they too inherit the non-global namespace param.<br><br>you can either add an attribute to the modues.conf to ask it to load with global name space<br>
<br>&lt;load module=&quot;mod_foo&quot; global=&quot;true&quot;/&gt;<br><br>or you can edit the code to request global loading every time.<br><br>by adding the param SMODF_GLOBAL_SYMBOLS to the SWITCH_MODULE_DEFINITION macro<br>
(See mod_cepstral at the top)<br><br><br><div class="gmail_quote">On Mon, Dec 1, 2008 at 2:31 AM, Traun Leyden <span dir="ltr">&lt;<a href="mailto:tleyden@branchcut.com">tleyden@branchcut.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Message: 9<br>
Date: Sun, 30 Nov 2008 18:42:30 -0800 (PST)<br>
From: Marc Orenberg &lt;<a href="mailto:marc@kasteris.com" target="_blank">marc@kasteris.com</a>&gt;<br>
Subject: [Freeswitch-users] Problem importing modules in mod_python<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Message-ID: &lt;<a href="mailto:195670.44941.qm@web50805.mail.re2.yahoo.com" target="_blank">195670.44941.qm@web50805.mail.re2.yahoo.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
In the latter versions of mod_python, I&#39;m unable to import standard python modules such as time and MySQLdb.?<br>
For example, the following script works fine in version 1.0.1:<br>
<br>
??? ??? import time<br>
??? ??? import os<br>
??? ??? from freeswitch import *<br>
??? ??? def handler(session, args):<br>
??? ??? ??? session.answer()<br>
??? ??? ??? session.execute(&quot;sleep&quot;, &quot;2000&quot;)<br>
??? ??? ??? session.streamFile(&quot;/usr/local/freeswitch/prompts/01Welcome.wav&quot;)<br>
??? ??? ??? return(session)<br>
<br>
But in freeswitch-1.0.latest.tar.gz, and svn versions 10556-10558, I get the following error:<br>
<br>
??? ??? 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 &quot;/usr/lib/python2.4/site-packages/scripts/test.py&quot;, line 1, in ?<br>
??? ??? import time<br>
??? ??? ImportError: /usr/lib/python2.4/lib-dynload/timemodule.so: undefined symbol: PyExc_ValueError<br>
<br>
Thanks for your help!<br>
</blockquote><div><br>I have run into the same problem and put some documentation on the wiki:<br><br><a href="http://wiki.freeswitch.org/wiki/Mod_python#ImportError:_.2F...2Fdatetime.so:_undefined_symbol:_PyExc_IOError" target="_blank">http://wiki.freeswitch.org/wiki/Mod_python#ImportError:_.2F...2Fdatetime.so:_undefined_symbol:_PyExc_IOError</a><br>

<br>I think something changed in freeswitch in the way it is loading modules, or at least the way it is loading mod_python.&nbsp; This behavior appeared all of the sudden in recent freeswitch versions.<br><br>HTH <br></div></div>

<br>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>