nltk/nltk_data

Server Index link is not working

thewebcoder2009 opened this issue · 11 comments

The link https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml from where the nltk downloads model is not working for me. Whenever I try to open it manually it shows raw.githubusercontent.com took too long to respond. And when python tries to download it shows "Error loading punkt: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>"

How do I fix this.
Note :- My network is good also.

Hello!

You're not the only one who's been experiencing these issues:

However, I just can't seem to reproduce the issues. https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml loads perfectly for me, in all of my browsers, and even on my phone. The website is simply this GitHub page: https://github.com/nltk/nltk_data/blob/gh-pages/index.xml, and then clicking on "raw" to get only the content from index.xml. With other words, this isn't some shady or inconsistent host, it's GitHub themselves. Perhaps you can load the page by clicking on the "raw" button on that page?

I've tried a few websites that check whether a site is pingable or not, and most seem to report that the site is accessible. I'm not quite sure what I can do about this.

By clicking raw button then also it is showing same error

This seems to indeed be caused by https://raw.githubusercontent.com sometimes being down. I don't think there's much I can do about that.

Hmm... OK Thanks for replying

@thecoder1234-ssvbhilai There's a bit more info and a workaround here: nltk/nltk#3092 (comment)

still not working

Some users are suggesting that this is a DNS error. Please look here: nltk/nltk#3092 (comment).

I was also facing the same problem , but for India I can say the problem is with Jio Internet used , it is somehow causing the problem , when i am using different network for wifi like BSNL or Airtel then it is working fine

yes I am also using jio fiber

I very tired this error. Many days try solve this error. I have too error. Network good. Only get error. If I cannot fix this , can I download nltk files without python code?

Yes, you can download the NLTK files without Python code: nltk/nltk#3092 (comment)
There are some useful things to try in that thread.