Skip to content
Advertisement

nltk download url authorization issue

I tried to update my nltk data with nltk.download() but I got HTTP Error 401: Authorization Required.

When I traced the url in question, I found it in downloader.py

DEFAULT_URL = ‘http://nltk.googlecode.com/svn/trunk/nltk_data/index.xml’

I then copied that URL and ran it in my browser to find out that it’s asking me for a username and password.

Does anyone know how to solve this issue?

Advertisement

Answer

NLTK have moved from their googlecode site.

As noted in this question, nltk’s new data server is located at http://nltk.github.com/nltk_data/. Just update the URL to the new location, and it should hopefully work.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement