Hi Rick, were you able to solve the issue with WSGI/Apache and NLTK. I just run into the exact same problem. Thanks in advance.
On Friday, June 15, 2012 9:02:12 AM UTC-7, RickG wrote: > > I am having the same problem (independently) using NLTK in Apache on > Ubuntu. I can import it fine from the shell, but an import from within a > WSGI file or any python script being run through mod-wsgi will hang/freeze > Apache. > > On Tuesday, June 7, 2011 1:35:35 PM UTC-4, Sal wrote: >> >> Hi all, >> >> I've got a strange problem. I'm on windows, running the latest >> version of Apache, Pylons and NLTK (natural language toolkit). You >> can install NLTK here: http://www.nltk.org/download >> >> I've used NLTK in many python projects with no problems, however today >> for the first time I attempted to use NLTK from within a Pylons >> controller. Turns out if you simply "import nltk" from within any >> controller it will freeze apache and freeze pylons. No error >> messages, the request never returns. >> >> Can anyone replicate this? Perhaps offer any suggestions as to how to >> fix it? >> >> To replicate, install NLTK and then import nltk from within any >> controller. Then try calling the controller from within a browser. >> >> Thanks in advance! > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/_33ZC_sQbigJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
