[Python-il] Apache with mod WSGI (for django) crashes when you "import nltk"

Shai Berger shai at platonix.com
Fri Feb 1 23:45:56 IST 2013


Hi,

On Friday 01 February 2013, Emanuel Ilyayev wrote:
> 
> From Asaf's description it looks like you have to change your
> architecture.
> 

... before you go to all that trouble, make sure you are using mod_wsgi in 
daemon mode and not embedded mode. In daemon mode, the Python server (Django, 
NTLK, whatever) is run in a separate process, and Apache talks to it through 
sockets. It may not give you all the benefits of Emanuel's suggestions, but it 
will give you a significant part of them at a very small fraction of the effort.

Shai. 


More information about the Python-il mailing list