nltk/nltk — Issue #182: Unable to finish downloading book files -- download crashes on reuters file
Author: alexrudnick
Created: 2012-01-17 06:27:57+00:00
State: open

What version of NLTK are you using? (See nltk.__version__). Please only
submit bug reports for the current version.

2.0.1rc1

What steps will reproduce the problem? (e.g. include Python source code)

import nltk
nltk.download()

NLTK Downloader appears

Select "book" in "Collections" tab

Click Download button

Download proceeds all right until "Downloading package 'reuters'"

Download stops -- error message: "Error with downloaded zip file"

What is the expected output? What do you see instead?

Expect to see Download completed; see error message instead: "Error with downloaded zip file"

When I click Cancel button to close the Downloader, I get the following exception:

/Library/Python/2.6/site-packages/nltk/__init__.py:658: DeprecationWarning: object.__new__() takes no parameters
showing info http://nltk.googlecode.com/svn/trunk/nltk_data/index.xml
Exception in Tkinter callback
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1410, in __call__
File "/Library/Python/2.6/site-packages/nltk/downloader.py", line 1525, in _download
return self._download_threaded(*e)
File "/Library/Python/2.6/site-packages/nltk/downloader.py", line 1788, in _download_threaded
assert self._download_msg_queue == []
AssertionError
True

Please use labels and text to provide additional information.

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

earlier comments

ranju@b-eagles.com said, at 2011-11-10T09:36:50.000Z:

I upgraded to python 2.7 and getting the same error.
But for me it is a different file, brown_tei.zip.

When I try to unzip the file using 7zip, I get an error.
When I look at the code, the error is rightly being thrown when the file is being unzipped.

Does this mean that there are some files which are corrupt on the nltk server?

waynev said, at 2011-11-16T06:23:51.000Z:

I'm getting the same error with Python 2.7.2, nltk 2.0b9 on Windows 7 32 bit.
But I'm getting the error on the file conll2002.zip
This .zip file appears to be invalid, since if I try to open it with Windows, it fails with the message "The compressed (zipped) folder ...\conll2002.zip is invalid"

waynev said, at 2011-11-17T04:30:54.000Z:

However, Python 2.6.6, nltk 2.0b9 on Windows Vista SP 2 32 bit works fine.