I am trying to run the below code:
import nltk
nltk.download()
I get the NLTK downloader where I select Corpora tab and try to download wordnet (or any other file) I am getting the below error
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 1914, in _monitor_message_queue
self._select(msg.package.id)
AttributeError: 'unicode' object has no attribute 'id'
Process finished with exit code -805306369 (0xCFFFFFFF)
and
<urlopen error [Errno 10109] getaddrinfo failed>
I believe it's a network issue, how can I resolve it? (Just an FYI, I can connect to the internet and browse normally)