nltk/nltk — Issue #111: nltk.download() error
Author: alexrudnick
Created: 2012-01-17 06:26:19+00:00
State: open

2.6.4

What steps will reproduce the problem? nltk.download()

What is the expected output? A new window should open, showing the NLTK
Downloader.

What do you see instead?
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
nltk.download()
File "C:\Python26\lib\site-packages\nltk\downloader.py", line 644, in
download
self._interactive_download()
File "C:\Python26\lib\site-packages\nltk\downloader.py", line 960, in
_interactive_download
DownloaderGUI(self).mainloop()
File "C:\Python26\lib\site-packages\nltk\downloader.py", line 1184, in
__init__
self._fill_table()
File "C:\Python26\lib\site-packages\nltk\downloader.py", line 1451, in
_fill_table
items = self._ds.collections()
File "C:\Python26\lib\site-packages\nltk\downloader.py", line 489, in
collections
self._update_index()
File "C:\Python26\lib\site-packages\nltk\downloader.py", line 814, in
_update_index
ElementTree.parse(urllib2.urlopen(self._url)).getroot())
File "C:\Python26\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python26\lib\urllib2.py", line 389, in open
response = self._open(req, data)
File "C:\Python26\lib\urllib2.py", line 407, in _open
'_open', req)
File "C:\Python26\lib\urllib2.py", line 367, in _call_chain
result = func(*args)
File "C:\Python26\lib\urllib2.py", line 1146, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python26\lib\urllib2.py", line 1121, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 11001] getaddrinfo failed>

Please use labels and text to provide additional information.

Migrated from http://code.google.com/p/nltk/issues/detail?id=543

earlier comments

StevenBird1 said, at 2010-05-11T12:18:15.000Z:

I wonder if this issue occurs because of a web proxy (the downloader doesn't work
with proxies). Cf issue 397.