[Freeswitch-users] issue with mod_python

Tamer Higazi th982a at googlemail.com
Sat Sep 12 21:50:53 UTC 2020


Hi David,

Have you exported the pythonpath before you started freeswitch ?

export PYTHONPATH=$PYTHONPATH:/usr/share/freeswitch/scripts/

should solve your problem, otherwise the import fails.


best, Tamer


On 2020-09-09 02:09, David Villasmil wrote:
> Hello guys,
>
> i¡m not sure what's going on. I just installed a fresh 1.10.5 and i've 
> got a script in
>
> # ls -l /usr/share/freeswitch/scripts/foo-outbound.py
> -rw-r--r-- 1 root root 3804 Sep  8 23:44 
> /usr/share/freeswitch/scripts/foo-outbound.py
>
> but FS either can't find it or something's changed in the architecture:
>
> 2020-09-09 00:05:08.548244 [NOTICE] mod_python.c:213 Invoking py 
> module: foo-outbound
> 2020-09-09 00:05:08.548244 [ERR] mod_python.c:253 Error importing module
> 2020-09-09 00:05:08.548244 [ERR] mod_python.c:165 Python Error by 
> calling script "foo-outbound": <type 'exceptions.ImportError'>
> Message: No module named foo-outbound
>
>
>
> l> status
> UP 0 years, 0 days, 0 hours, 26 minutes, 27 seconds, 2 milliseconds, 
> 76 microseconds
> FreeSWITCH (Version 1.10.5 -release-17-25569c1631 64bit) is ready
> 6 session(s) since startup
> 0 session(s) - peak 1, last 5min 0
> 0 session(s) per Sec out of max 30, peak 1, last 5min 0
> 1000 session(s) max
> min idle cpu 0.00/90.07
> Current Stack Size/Max 240K/8192K
>
> Anyone knows anything about this?
>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com 
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com



More information about the FreeSWITCH-users mailing list