Issue 742 in nltk: command line error occurs after entering nltk.download()

69 views
Skip to first unread message

nl...@googlecode.com

unread,
Apr 3, 2013, 5:54:16 PM4/3/13
to nltk-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 742 by friend.a...@gmail.com: command line error occurs after
entering nltk.download()
http://code.google.com/p/nltk/issues/detail?id=742

Python 2.7.2 (default, Jun 16 2012, 12:38:40)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
>>> nltk.download()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/nltk/downloader.py", line 644, in
download
self._interactive_download()
File "/Library/Python/2.7/site-packages/nltk/downloader.py", line 956, in
_interactive_download
DownloaderGUI(self).mainloop()
File "/Library/Python/2.7/site-packages/nltk/downloader.py", line 1217,
in __init__
self._fill_table()
File "/Library/Python/2.7/site-packages/nltk/downloader.py", line 1513,
in _fill_table
items = self._ds.collections()
File "/Library/Python/2.7/site-packages/nltk/downloader.py", line 489, in
collections
self._update_index()
File "/Library/Python/2.7/site-packages/nltk/downloader.py", line 814, in
_update_index
ElementTree.parse(urllib2.urlopen(self._url)).getroot())

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
line 1177, in parse
tree.parse(source, parser)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
line 653, in parse
parser.feed(data)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
line 1624, in feed
self._raiseerror(v)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
line 1488, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1,
column 0


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages