(Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
MEMBER
Are you running the script on a machine with an internet connection ?
2020-10-25T23:52:55Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716233946
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjIzMzk0Ng==
https://api.github.com/repos/huggingface/datasets/issues/comments/716233946/reactions
2020-10-25T23:52:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716233946
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Yes ,  I can browse the url through Google Chrome.
2020-10-26T04:43:50Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716299738
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjI5OTczOA==
https://api.github.com/repos/huggingface/datasets/issues/comments/716299738/reactions
2020-10-26T04:43:50Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716299738
https://avatars.githubusercontent.com/u/63541083?v=4
https://api.github.com/users/AI678/events{/privacy}
https://api.github.com/users/AI678/followers
https://api.github.com/users/AI678/following{/other_user}
https://api.github.com/users/AI678/gists{/gist_id}
https://github.com/AI678
AI678
MDQ6VXNlcjYzNTQxMDgz
https://api.github.com/users/AI678/orgs
https://api.github.com/users/AI678/received_events
https://api.github.com/users/AI678/repos
https://api.github.com/users/AI678/starred{/owner}{/repo}
https://api.github.com/users/AI678/subscriptions
User
https://api.github.com/users/AI678
public
MEMBER
Does this HEAD request return 200 on your machine ?
```python
import requests                                                                                                                                                                                                         
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```

If it returns 200, could you try again to load the dataset ?
2020-10-26T09:44:09Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716433152
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjQzMzE1Mg==
https://api.github.com/repos/huggingface/datasets/issues/comments/716433152/reactions
2020-10-26T09:44:09Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716433152
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Thank you very much for your response.
When I run 
``` 
import requests                                                                                                                                                                                                         
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
It returns 200.

And I try again to load the dataset. I got the following errors again. 

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 608, in load_dataset
    builder_instance.download_and_prepare(
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 475, in download_and_prepare
    self._download_and_prepare(
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 531, in _download_and_prepare
    split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
  File "C:\Users\666666\.cache\huggingface\modules\datasets_modules\datasets\cnn_dailymail\0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602\cnn_dailymail.py", line 253, in _split_generators
    dl_paths = dl_manager.download_and_extract(_DL_URLS)
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 254, in download_and_extract
    return self.extract(self.download(url_or_urls))
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 175, in download
    downloaded_path_or_paths = map_nested(
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 224, in map_nested
    mapped = [
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 225, in <listcomp>
    _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 163, in _single_map_nested
    return function(data_struct)
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 300, in cached_path
    output_path = get_from_cache(
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 475, in get_from_cache
    raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ

Connection error happened but the url was different.

I add the following code.
```
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
```
This  didn't  return 200
It returned like this:

Traceback (most recent call last):
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
    raise err
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
    sock.connect(sa)
TimeoutError: [WinError 10060] 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
    httplib_response = self._make_request(
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 309, in connect
    conn = self._new_conn()
  File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001F6060618E0>: Failed to establish a new connection: [WinError 10060] 
2020-10-26T10:25:05Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716454528
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjQ1NDUyOA==
https://api.github.com/repos/huggingface/datasets/issues/comments/716454528/reactions
2020-10-26T10:26:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716454528
https://avatars.githubusercontent.com/u/63541083?v=4
https://api.github.com/users/AI678/events{/privacy}
https://api.github.com/users/AI678/followers
https://api.github.com/users/AI678/following{/other_user}
https://api.github.com/users/AI678/gists{/gist_id}
https://github.com/AI678
AI678
MDQ6VXNlcjYzNTQxMDgz
https://api.github.com/users/AI678/orgs
https://api.github.com/users/AI678/received_events
https://api.github.com/users/AI678/repos
https://api.github.com/users/AI678/starred{/owner}{/repo}
https://api.github.com/users/AI678/subscriptions
User
https://api.github.com/users/AI678
public
MEMBER
Is google drive blocked on your network ?
For me 
```python
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
```
returns 200
2020-10-26T10:29:27Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716456893
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjQ1Njg5Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/716456893/reactions
2020-10-26T10:29:27Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716456893
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
I can browse the google drive through google chrome. It's weird. I can download the dataset through google drive manually.
2020-10-26T10:36:29Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716460750
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjQ2MDc1MA==
https://api.github.com/repos/huggingface/datasets/issues/comments/716460750/reactions
2020-10-26T10:36:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716460750
https://avatars.githubusercontent.com/u/63541083?v=4
https://api.github.com/users/AI678/events{/privacy}
https://api.github.com/users/AI678/followers
https://api.github.com/users/AI678/following{/other_user}
https://api.github.com/users/AI678/gists{/gist_id}
https://github.com/AI678
AI678
MDQ6VXNlcjYzNTQxMDgz
https://api.github.com/users/AI678/orgs
https://api.github.com/users/AI678/received_events
https://api.github.com/users/AI678/repos
https://api.github.com/users/AI678/starred{/owner}{/repo}
https://api.github.com/users/AI678/subscriptions
User
https://api.github.com/users/AI678
public
MEMBER
Could you try to update `requests` maybe ?
It works with 2.23.0 on my side
2020-10-26T11:14:54Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716481174
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjQ4MTE3NA==
https://api.github.com/repos/huggingface/datasets/issues/comments/716481174/reactions
2020-10-26T11:14:54Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716481174
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
My ```requests``` is 2.24.0 . It still can't return 200.
2020-10-26T11:44:38Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716494907
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjQ5NDkwNw==
https://api.github.com/repos/huggingface/datasets/issues/comments/716494907/reactions
2020-10-26T11:44:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716494907
https://avatars.githubusercontent.com/u/63541083?v=4
https://api.github.com/users/AI678/events{/privacy}
https://api.github.com/users/AI678/followers
https://api.github.com/users/AI678/following{/other_user}
https://api.github.com/users/AI678/gists{/gist_id}
https://github.com/AI678
AI678
MDQ6VXNlcjYzNTQxMDgz
https://api.github.com/users/AI678/orgs
https://api.github.com/users/AI678/received_events
https://api.github.com/users/AI678/repos
https://api.github.com/users/AI678/starred{/owner}{/repo}
https://api.github.com/users/AI678/subscriptions
User
https://api.github.com/users/AI678
public
NONE
Is it possible I download the dataset manually from google drive and use it for further test ? How can I do this ? I want to reproduce the model in this link https://huggingface.co/patrickvonplaten/bert2bert-cnn_dailymail-fp16. But I can't download the dataset through load_dataset method . I have tried many times  and the connection error always happens .

2020-10-26T16:25:58Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716664107
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjY2NDEwNw==
https://api.github.com/repos/huggingface/datasets/issues/comments/716664107/reactions
2020-10-26T16:25:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716664107
https://avatars.githubusercontent.com/u/63541083?v=4
https://api.github.com/users/AI678/events{/privacy}
https://api.github.com/users/AI678/followers
https://api.github.com/users/AI678/following{/other_user}
https://api.github.com/users/AI678/gists{/gist_id}
https://github.com/AI678
AI678
MDQ6VXNlcjYzNTQxMDgz
https://api.github.com/users/AI678/orgs
https://api.github.com/users/AI678/received_events
https://api.github.com/users/AI678/repos
https://api.github.com/users/AI678/starred{/owner}{/repo}
https://api.github.com/users/AI678/subscriptions
User
https://api.github.com/users/AI678
public
MEMBER
The head request should definitely work, not sure what's going on on your side.
If you find a way to make it work, please post it here since other users might encounter the same issue.

If you don't manage to fix it you can use `load_dataset` on google colab and then save it using `dataset.save_to_disk("path/to/dataset")`.
Then you can download the directory on your machine and do
```python
from datasets import load_from_disk
dataset = load_from_disk("path/to/local/dataset")
```
2020-10-26T16:37:14Z
https://github.com/huggingface/datasets/issues/759#issuecomment-716671870
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDcxNjY3MTg3MA==
https://api.github.com/repos/huggingface/datasets/issues/comments/716671870/reactions
2020-10-26T16:37:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/716671870
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Hi
I want to know if this problem has been solved because I encountered a similar issue. Thanks.
`train_data = datasets.load_dataset("xsum", `split="train")`
`ConnectionError:` Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/xsum/xsum.py`
2021-02-01T08:48:50Z
https://github.com/huggingface/datasets/issues/759#issuecomment-770684693
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDc3MDY4NDY5Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/770684693/reactions
2021-02-01T08:48:50Z
https://api.github.com/repos/huggingface/datasets/issues/comments/770684693
https://avatars.githubusercontent.com/u/46243662?v=4
https://api.github.com/users/smile0925/events{/privacy}
https://api.github.com/users/smile0925/followers
https://api.github.com/users/smile0925/following{/other_user}
https://api.github.com/users/smile0925/gists{/gist_id}
https://github.com/smile0925
smile0925
MDQ6VXNlcjQ2MjQzNjYy
https://api.github.com/users/smile0925/orgs
https://api.github.com/users/smile0925/received_events
https://api.github.com/users/smile0925/repos
https://api.github.com/users/smile0925/starred{/owner}{/repo}
https://api.github.com/users/smile0925/subscriptions
User
https://api.github.com/users/smile0925
public
MEMBER
Hi @smile0925 ! Do you have an internet connection ? Are you using some kind of proxy that may block the access to this file ?

Otherwise you can try to update `datasets` since we introduced retries for http requests in the 1.2.0 version
```
pip install --upgrade datasets
```
Let me know if that helps.
2021-02-01T11:18:38Z
https://github.com/huggingface/datasets/issues/759#issuecomment-770781380
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDc3MDc4MTM4MA==
https://api.github.com/repos/huggingface/datasets/issues/comments/770781380/reactions
2021-02-01T11:18:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/770781380
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Hi @lhoestq 
Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
![image](https://user-images.githubusercontent.com/46243662/106456211-2ca24180-64c8-11eb-831e-47e9b40e7da4.png)


2021-02-01T12:01:04Z
https://github.com/huggingface/datasets/issues/759#issuecomment-770805343
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDc3MDgwNTM0Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/770805343/reactions
2021-02-01T12:01:04Z
https://api.github.com/repos/huggingface/datasets/issues/comments/770805343
https://avatars.githubusercontent.com/u/46243662?v=4
https://api.github.com/users/smile0925/events{/privacy}
https://api.github.com/users/smile0925/followers
https://api.github.com/users/smile0925/following{/other_user}
https://api.github.com/users/smile0925/gists{/gist_id}
https://github.com/smile0925
smile0925
MDQ6VXNlcjQ2MjQzNjYy
https://api.github.com/users/smile0925/orgs
https://api.github.com/users/smile0925/received_events
https://api.github.com/users/smile0925/repos
https://api.github.com/users/smile0925/starred{/owner}{/repo}
https://api.github.com/users/smile0925/subscriptions
User
https://api.github.com/users/smile0925
public
NONE
> Hi @lhoestq
> Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
> ![image](https://user-images.githubusercontent.com/46243662/106456211-2ca24180-64c8-11eb-831e-47e9b40e7da4.png)

I have the same problem, have you solved it? Many thanks
2021-02-17T16:21:55Z
https://github.com/huggingface/datasets/issues/759#issuecomment-780674481
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDc4MDY3NDQ4MQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/780674481/reactions
2021-02-17T16:21:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/780674481
https://avatars.githubusercontent.com/u/58726982?v=4
https://api.github.com/users/ShiZhengyan/events{/privacy}
https://api.github.com/users/ShiZhengyan/followers
https://api.github.com/users/ShiZhengyan/following{/other_user}
https://api.github.com/users/ShiZhengyan/gists{/gist_id}
https://github.com/ShiZhengyan
ShiZhengyan
MDQ6VXNlcjU4NzI2OTgy
https://api.github.com/users/ShiZhengyan/orgs
https://api.github.com/users/ShiZhengyan/received_events
https://api.github.com/users/ShiZhengyan/repos
https://api.github.com/users/ShiZhengyan/starred{/owner}{/repo}
https://api.github.com/users/ShiZhengyan/subscriptions
User
https://api.github.com/users/ShiZhengyan
public
NONE
Hi  @ZhengxiangShi 
You can first try whether your network can access these files. I need to use VPN to access these files, so I download the files that cannot be accessed to the local in advance, and then use them in the code. Like this,
`train_data = datasets.load_dataset("xsum.py", split="train")`
2021-02-22T07:59:43Z
https://github.com/huggingface/datasets/issues/759#issuecomment-783172829
https://api.github.com/repos/huggingface/datasets/issues/759
MDEyOklzc3VlQ29tbWVudDc4MzE3MjgyOQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/783172829/reactions
2021-02-22T07:59:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/783172829
https://avatars.githubusercontent.com/u/46243662?v=4
https://api.github.com/users/smile0925/events{/privacy}
https://api.github.com/users/smile0925/followers
https://api.github.com/users/smile0925/following{/other_user}
https://api.github.com/users/smile0925/gists{/gist_id}
https://github.com/smile0925
smile0925
MDQ6VXNlcjQ2MjQzNjYy
https://api.github.com/users/smile0925/orgs
https://api.github.com/users/smile0925/received_events
https://api.github.com/users/smile0925/repos
https://api.github.com/users/smile0925/starred{/owner}{/repo}
https://api.github.com/users/smile0925/subscriptions
User
https://api.github.com/users/smile0925
public
NONE
For Ubuntu 20.04, there are the following feedback. 

Google Drive is ok, but raw.githubusercontent.com has a big problem.  It seems that the raw github could not match the common urllib3 protocols. 

**1. Google Drive** 

```
import requests

requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
<Response [200]>
```

**2.  raw.githubusercontent.com**

```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
........

raise CertificateError(
urllib3.util.ssl_match_hostname.CertificateError: hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
........
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py (Caused by SSLError(CertificateError("hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'")))

........

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

.......

raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py (Caused by SSLError(CertificateError("hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'")))


**3. XSUM**

```
from datasets import load_dataset
raw_datasets = load_dataset("xsum", split="train")
```

ConnectionError: Couldn't reach https://raw.githubusercontent.com/EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (SSLError(MaxRetryError('HTTPSConnectionPool(host=\'raw.githubusercontent.com\', port=443): Max retries exceeded with url: /EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (Caused by SSLError(CertificateError("hostname \'raw.githubusercontent.com\' doesn\'t match either of \'default.ssl.fastly.net\', \'fastly.com\', \'*.a.ssl.fastly.net\', \'*.hosts.fastly.net\', \'*.global.ssl.fastly.net\', \'*.fastly.com\', \'a.ssl.fastly.net\', \'purge.fastly.net\', \'mirrors.fastly.net\', \'control.fastly.net\', \'tools.fastly.net\'")))')))


### The  following snippet could not solve the implicit ssl error.

```
import ssl

try:
    _create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
    pass
else:
    ssl._create_default_https_context = _create_unverified_https_context
```


2023-09-12T20:46:05Z
https://github.com/huggingface/datasets/issues/759#issuecomment-1716406475
https://api.github.com/repos/huggingface/datasets/issues/759
IC_kwDODunzps5mTkjL
https://api.github.com/repos/huggingface/datasets/issues/comments/1716406475/reactions
2023-09-12T20:54:16Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1716406475
https://avatars.githubusercontent.com/u/14157310?v=4
https://api.github.com/users/mikechen66/events{/privacy}
https://api.github.com/users/mikechen66/followers
https://api.github.com/users/mikechen66/following{/other_user}
https://api.github.com/users/mikechen66/gists{/gist_id}
https://github.com/mikechen66
mikechen66
MDQ6VXNlcjE0MTU3MzEw
https://api.github.com/users/mikechen66/orgs
https://api.github.com/users/mikechen66/received_events
https://api.github.com/users/mikechen66/repos
https://api.github.com/users/mikechen66/starred{/owner}{/repo}
https://api.github.com/users/mikechen66/subscriptions
User
https://api.github.com/users/mikechen66
public
MEMBER
Only the oldest versions of `datasets` use raw.githubusercontent.com. Can you try updating `datasets` ?
2023-09-12T22:38:07Z
https://github.com/huggingface/datasets/issues/759#issuecomment-1716612907
https://api.github.com/repos/huggingface/datasets/issues/759
IC_kwDODunzps5mUW8r
https://api.github.com/repos/huggingface/datasets/issues/comments/1716612907/reactions
2023-09-12T22:38:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1716612907
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Thank lhoestq fo the quick response. 

I solve the big issue with the command line as follows. 

**1. Open hosts (Ubuntu 20.04)**

`$ sudo gedit /etc/hosts`

**2. Add the command line into the hosts**

`151.101.0.133   raw.githubusercontent.com`

**3. Save hosts**

And then the jupyter notebook can access to the datasets (module)  and get the datasets of XSUM with raw.githubusercontent.com. 

So it is not users' fault. But most of the suggestions in the web are wrong. Anyway, I solve the problem finally. 

By the way, users need to add the other github commnads such as the following. 

`199.232.69.194 github.global.ssl.fastly.net`

Cheers!!!



2023-09-12T22:54:37Z
https://github.com/huggingface/datasets/issues/759#issuecomment-1716626285
https://api.github.com/repos/huggingface/datasets/issues/759
IC_kwDODunzps5mUaNt
https://api.github.com/repos/huggingface/datasets/issues/comments/1716626285/reactions
2023-09-12T23:03:50Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1716626285
https://avatars.githubusercontent.com/u/14157310?v=4
https://api.github.com/users/mikechen66/events{/privacy}
https://api.github.com/users/mikechen66/followers
https://api.github.com/users/mikechen66/following{/other_user}
https://api.github.com/users/mikechen66/gists{/gist_id}
https://github.com/mikechen66
mikechen66
MDQ6VXNlcjE0MTU3MzEw
https://api.github.com/users/mikechen66/orgs
https://api.github.com/users/mikechen66/received_events
https://api.github.com/users/mikechen66/repos
https://api.github.com/users/mikechen66/starred{/owner}{/repo}
https://api.github.com/users/mikechen66/subscriptions
User
https://api.github.com/users/mikechen66
public
NONE
I use the dataset 2.14.4 that published on Aug 8, 2023.发自我的 iPhone在 2023年9月13日，06:38，Quentin Lhoest ***@***.***> 写道：﻿
Only the oldest versions of datasets use raw.githubusercontent.com. Can you try updating datasets ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
2023-09-13T23:56:51Z
https://github.com/huggingface/datasets/issues/759#issuecomment-1718458259
https://api.github.com/repos/huggingface/datasets/issues/759
IC_kwDODunzps5mbZeT
https://api.github.com/repos/huggingface/datasets/issues/comments/1718458259/reactions
2023-09-13T23:56:51Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1718458259
https://avatars.githubusercontent.com/u/14157310?v=4
https://api.github.com/users/mikechen66/events{/privacy}
https://api.github.com/users/mikechen66/followers
https://api.github.com/users/mikechen66/following{/other_user}
https://api.github.com/users/mikechen66/gists{/gist_id}
https://github.com/mikechen66
mikechen66
MDQ6VXNlcjE0MTU3MzEw
https://api.github.com/users/mikechen66/orgs
https://api.github.com/users/mikechen66/received_events
https://api.github.com/users/mikechen66/repos
https://api.github.com/users/mikechen66/starred{/owner}{/repo}
https://api.github.com/users/mikechen66/subscriptions
User
https://api.github.com/users/mikechen66
public
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset

test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)

And I got the following errors.

Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py

How can I fix this ?