Question

This is the error when I try to restart the download again some times it work but since the new win7 I could not download any data from nltk

 nltk.download()

showing info http://nltk.github.com/nltk_data/
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
 return self.func(*args)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 495, in callit
 func(*args)
File "C:\Python27\lib\site-packages\nltk\downloader.py", line 1893, in_monitor_message_queue
self._select(msg.package.id)
AttributeError: 'str' object has no attribute 'id'
Was it helpful?

Solution

I was facing the same issue. The issue in my case was that when the NLTK downloader started it had the server index as - http://nltk.github.com/nltk_data/

This needs to be changed to - http://nltk.org/nltk_data/

You can change this by going into the NLTK Downloader window and the File->Change Server Index.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top