TextBlob icon indicating copy to clipboard operation
TextBlob copied to clipboard

Importing nltk on cgi-bin python webpage on localhost.

Open saitarslanboun opened this issue 10 years ago • 2 comments

Hello,

I have a cgi-bin webpage. I use textblob in my python codes. When I run my website on localhost, I get the following error: "Resource u'tokenizers/punkt/english.pickle' not found. Please use the NLTK Downloader to obtain the resource:"

nltk.download('all'), or "python -m textblob.download_corpora" didn't solve my problem.

How can I fix this issue?

Thanks

saitarslanboun avatar Dec 12 '15 03:12 saitarslanboun

Bump same issue, also there is another post about this same issue about ec2.

lheston avatar Aug 15 '16 04:08 lheston

Verify the file is accessible by the user executing the script. For example, for Apache: sudo -u apache cat <data dir>/nltk_data/tokenizers/punkt/english.pickle

jschnurr avatar Jan 03 '18 00:01 jschnurr