> root@peterbe2:~# python -m nltk.downloader wordnet
> [nltk_data] Downloading package 'wordnet' to /root/nltk_data...
It looks like the downloader is saving the package to root's home
directory, rather than to any system directory. Then when you try to
access it as a user (django), it's looking in that user's home
directory, not root's.
The intent was that it should install to system directories if
possible (i.e., if they're writable); and to the current user's home
directory as a last resort. But it looks like there's a bug that's
currently making it check the current user's home directory *first*,
which isn't really what you want if the current user is root.
The short-term fix is to explicitly tell nltk where to download things
to: E.g.:
>>> nltk.download('wordnet', '/usr/share/nltk_data')
I'll try to put in a more long-term fix in svn sometime today or tomorrow.
-Edward