When I run nltk.corpus.gutenberg.fileids()
with Python 2.7 (Anaconda, Windows) I get the following error:
File "C:\Anaconda\lib\ntpath.py", line 85, in join
result_path = result_path + '\\'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 9:
ordinal not in range(128)
I don't have this error when I use Python 3.4. Maybe I'm wrong but I suspect the path to contain an accent (as there is an accent in my Windows username).
When I add some print
in ntpath.py
, nothing is printed I don't know why (?) so I'm unable to debug by myself.
EDIT: The import nltk
is enough to get the error.