Closed cast42 closed 6 months ago
This issue has been resolved
the code still gives me the same error. it was done in google colab.
` HTTPError Traceback (most recent call last) in <cell line: 4>() 2 3 # news_data = fetch_20newsgroups(subset='all',random_state=156) ----> 4 newsgroup_train = fetch_20newsgroups(subset='train') 5 newsgroup_test = fetch_20newsgroups(subset='test')
9 frames /usr/lib/python3.10/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs) 641 class HTTPDefaultErrorHandler(BaseHandler): 642 def http_error_default(self, req, fp, code, msg, hdrs): --> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp) 644 645 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP Error 403: Forbidden `
HTTPError Traceback (most recent call last)
9 frames /usr/lib/python3.10/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs) 641 class HTTPDefaultErrorHandler(BaseHandler): 642 def http_error_default(self, req, fp, code, msg, hdrs): --> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp) 644 645 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP Error 403: Forbidden
I think this error occurs randomly...
I also got the same 403 Forbidden error in Google Colab.
same error when running from colab:
11 frames /usr/lib/python3.10/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs) 641 class HTTPDefaultErrorHandler(BaseHandler): 642 def http_error_default(self, req, fp, code, msg, hdrs): --> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp) 644 645 class HTTPRedirectHandler(BaseHandler):
Description of the bug:
gives following error:
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response