[Freeswitch-users] Reloading mod_python dist-packages?
Amil
amilkhanzada at gmail.com
Tue Aug 14 01:47:22 MSD 2012
Hi João,
Thank you for the response. However, mod_python is not reloadable on my
machine:
> freeswitch at amil-ubuntu> reload mod_python
> 2012-08-13 13:44:48.922331 [CRIT] switch_loadable_module.c:1421 Module is
> not unloadable.
> -ERR unloading module [Module is not unloadable]
> +OK Reloading XML
> -ERR loading module [Module already loaded]
> 2012-08-13 13:44:49.242317 [WARNING] switch_loadable_module.c:1370 Module
> mod_python Already Loaded!
> 2012-08-13 13:44:49.242317 [INFO] mod_enum.c:812 ENUM Reloaded
> 2012-08-13 13:44:49.242317 [INFO] switch_time.c:1123 Timezone reloaded 530
> definitions
Any other ideas? Is there some command to just reload the dist-packages? If
not, I guess this is a feature request (although not urgent).
-Amil
On Mon, Aug 13, 2012 at 2:27 PM, João Mesquita <jmesquita at freeswitch.org>wrote:
> Reloading the mod should be enough. I imagine that mod_python respects
> anything that the interpreter would do as if it was running standalone.
>
> Reloading modules is potentially hazardous and you should be careful with
> it:
> http://stackoverflow.com/questions/684171/how-to-re-import-an-updated-package-while-in-python-interpreter
>
> Regards,
> João Mesquita
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120813/166d37cb/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list