load_dataset for LOCAL CSV files report CONNECTION ERROR
MEMBER
Hi !
The url works on my side.

Is the url working in your navigator ?
Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
2020-11-09T10:26:05Z
https://github.com/huggingface/datasets/issues/807#issuecomment-723920847
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDcyMzkyMDg0Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/723920847/reactions
2020-11-09T10:26:05Z
https://api.github.com/repos/huggingface/datasets/issues/comments/723920847
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 !
> The url works on my side.
> 
> Is the url working in your navigator ?
> Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?

I tried another server, it's working now. Thanks a lot.

And I'm curious about why download things from "github" when I load dataset from local files ?  Dose datasets work if my network crashed?
2020-11-10T02:34:10Z
https://github.com/huggingface/datasets/issues/807#issuecomment-724410800
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDcyNDQxMDgwMA==
https://api.github.com/repos/huggingface/datasets/issues/comments/724410800/reactions
2020-11-10T02:34:10Z
https://api.github.com/repos/huggingface/datasets/issues/comments/724410800
https://avatars.githubusercontent.com/u/25664170?v=4
https://api.github.com/users/shexuan/events{/privacy}
https://api.github.com/users/shexuan/followers
https://api.github.com/users/shexuan/following{/other_user}
https://api.github.com/users/shexuan/gists{/gist_id}
https://github.com/shexuan
shexuan
MDQ6VXNlcjI1NjY0MTcw
https://api.github.com/users/shexuan/orgs
https://api.github.com/users/shexuan/received_events
https://api.github.com/users/shexuan/repos
https://api.github.com/users/shexuan/starred{/owner}{/repo}
https://api.github.com/users/shexuan/subscriptions
User
https://api.github.com/users/shexuan
public
NONE
It seems my network frequently crashed so most time it cannot work.
2020-11-10T02:54:24Z
https://github.com/huggingface/datasets/issues/807#issuecomment-724416533
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDcyNDQxNjUzMw==
https://api.github.com/repos/huggingface/datasets/issues/comments/724416533/reactions
2020-11-10T02:54:24Z
https://api.github.com/repos/huggingface/datasets/issues/comments/724416533
https://avatars.githubusercontent.com/u/25664170?v=4
https://api.github.com/users/shexuan/events{/privacy}
https://api.github.com/users/shexuan/followers
https://api.github.com/users/shexuan/following{/other_user}
https://api.github.com/users/shexuan/gists{/gist_id}
https://github.com/shexuan
shexuan
MDQ6VXNlcjI1NjY0MTcw
https://api.github.com/users/shexuan/orgs
https://api.github.com/users/shexuan/received_events
https://api.github.com/users/shexuan/repos
https://api.github.com/users/shexuan/starred{/owner}{/repo}
https://api.github.com/users/shexuan/subscriptions
User
https://api.github.com/users/shexuan
public
NONE



> > Hi !
> > The url works on my side.
> > Is the url working in your navigator ?
> > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> 
> I tried another server, it's working now. Thanks a lot.
> 
> And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?

I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`？ 

Thanks :D
2020-11-10T06:11:57Z
https://github.com/huggingface/datasets/issues/807#issuecomment-724480597
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDcyNDQ4MDU5Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/724480597/reactions
2020-11-10T06:11:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/724480597
https://avatars.githubusercontent.com/u/25664170?v=4
https://api.github.com/users/shexuan/events{/privacy}
https://api.github.com/users/shexuan/followers
https://api.github.com/users/shexuan/following{/other_user}
https://api.github.com/users/shexuan/gists{/gist_id}
https://github.com/shexuan
shexuan
MDQ6VXNlcjI1NjY0MTcw
https://api.github.com/users/shexuan/orgs
https://api.github.com/users/shexuan/received_events
https://api.github.com/users/shexuan/repos
https://api.github.com/users/shexuan/starred{/owner}{/repo}
https://api.github.com/users/shexuan/subscriptions
User
https://api.github.com/users/shexuan
public
NONE
hello, how did you solve this problems?

> > > Hi !
> > > The url works on my side.
> > > Is the url working in your navigator ?
> > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > 
> > 
> > I tried another server, it's working now. Thanks a lot.
> > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> 
> I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`？
> 
> Thanks :D

hello, I tried this. but it still failed. how do you fix this error?
2020-11-16T08:43:38Z
https://github.com/huggingface/datasets/issues/807#issuecomment-727828800
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDcyNzgyODgwMA==
https://api.github.com/repos/huggingface/datasets/issues/comments/727828800/reactions
2020-11-16T08:43:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/727828800
https://avatars.githubusercontent.com/u/43171029?v=4
https://api.github.com/users/wuaibo/events{/privacy}
https://api.github.com/users/wuaibo/followers
https://api.github.com/users/wuaibo/following{/other_user}
https://api.github.com/users/wuaibo/gists{/gist_id}
https://github.com/wuaibo
wuaibo
MDQ6VXNlcjQzMTcxMDI5
https://api.github.com/users/wuaibo/orgs
https://api.github.com/users/wuaibo/received_events
https://api.github.com/users/wuaibo/repos
https://api.github.com/users/wuaibo/starred{/owner}{/repo}
https://api.github.com/users/wuaibo/subscriptions
User
https://api.github.com/users/wuaibo
public
NONE
> hello, how did you solve this problems?
> 
> > > > Hi !
> > > > The url works on my side.
> > > > Is the url working in your navigator ?
> > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > 
> > > 
> > > I tried another server, it's working now. Thanks a lot.
> > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > 
> > 
> > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`？
> > Thanks :D
> 
> hello, I tried this. but it still failed. how do you fix this error?

你把那个脚本下载到你本地安装目录下，然后 `load_dataset(csv_script_path, data_fiels)`


2020-11-17T06:08:02Z
https://github.com/huggingface/datasets/issues/807#issuecomment-728708724
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDcyODcwODcyNA==
https://api.github.com/repos/huggingface/datasets/issues/comments/728708724/reactions
2020-11-17T06:08:02Z
https://api.github.com/repos/huggingface/datasets/issues/comments/728708724
https://avatars.githubusercontent.com/u/25664170?v=4
https://api.github.com/users/shexuan/events{/privacy}
https://api.github.com/users/shexuan/followers
https://api.github.com/users/shexuan/following{/other_user}
https://api.github.com/users/shexuan/gists{/gist_id}
https://github.com/shexuan
shexuan
MDQ6VXNlcjI1NjY0MTcw
https://api.github.com/users/shexuan/orgs
https://api.github.com/users/shexuan/received_events
https://api.github.com/users/shexuan/repos
https://api.github.com/users/shexuan/starred{/owner}{/repo}
https://api.github.com/users/shexuan/subscriptions
User
https://api.github.com/users/shexuan
public
NONE
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > > 
> > > > 
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > > 
> > > 
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`？
> > > Thanks :D
> > 
> > 
> > hello, I tried this. but it still failed. how do you fix this error?
> 
> 你把那个脚本下载到你本地安装目录下，然后 `load_dataset(csv_script_path, data_fiels)`

好的好的！解决了，感谢感谢！！！
2020-11-17T06:49:32Z
https://github.com/huggingface/datasets/issues/807#issuecomment-728725591
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDcyODcyNTU5MQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/728725591/reactions
2020-11-17T06:49:32Z
https://api.github.com/repos/huggingface/datasets/issues/comments/728725591
https://avatars.githubusercontent.com/u/43171029?v=4
https://api.github.com/users/wuaibo/events{/privacy}
https://api.github.com/users/wuaibo/followers
https://api.github.com/users/wuaibo/following{/other_user}
https://api.github.com/users/wuaibo/gists{/gist_id}
https://github.com/wuaibo
wuaibo
MDQ6VXNlcjQzMTcxMDI5
https://api.github.com/users/wuaibo/orgs
https://api.github.com/users/wuaibo/received_events
https://api.github.com/users/wuaibo/repos
https://api.github.com/users/wuaibo/starred{/owner}{/repo}
https://api.github.com/users/wuaibo/subscriptions
User
https://api.github.com/users/wuaibo
public
NONE
> 
> 
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > > 
> > > > 
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > > 
> > > 
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`？
> > > Thanks :D
> > 
> > 
> > hello, I tried this. but it still failed. how do you fix this error?
> 
> 你把那个脚本下载到你本地安装目录下，然后 `load_dataset(csv_script_path, data_fiels)`

我照着做了，然后报错。
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path

`---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-5-fd2106a3f053> in <module>
----> 1 dataset = load_dataset('C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets/csv.py', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)

C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
    588     # Download/copy dataset processing script
    589     module_path, hash = prepare_module(
--> 590         path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
    591     )
    592 

C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
    296         local_dataset_infos_path = cached_path(
    297             dataset_infos,
--> 298             download_config=download_config,
    299         )
    300     except (FileNotFoundError, ConnectionError):

C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
    316     else:
    317         # Something unknown
--> 318         raise ValueError("unable to parse {} as a URL or as a local path".format(url_or_filename))
    319 
    320     if download_config.extract_compressed_file and output_path is not None:

ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path

`
2021-01-08T07:09:57Z
https://github.com/huggingface/datasets/issues/807#issuecomment-756591516
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDc1NjU5MTUxNg==
https://api.github.com/repos/huggingface/datasets/issues/comments/756591516/reactions
2021-01-08T07:09:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/756591516
https://avatars.githubusercontent.com/u/35511759?v=4
https://api.github.com/users/wn1652400018/events{/privacy}
https://api.github.com/users/wn1652400018/followers
https://api.github.com/users/wn1652400018/following{/other_user}
https://api.github.com/users/wn1652400018/gists{/gist_id}
https://github.com/wn1652400018
wn1652400018
MDQ6VXNlcjM1NTExNzU5
https://api.github.com/users/wn1652400018/orgs
https://api.github.com/users/wn1652400018/received_events
https://api.github.com/users/wn1652400018/repos
https://api.github.com/users/wn1652400018/starred{/owner}{/repo}
https://api.github.com/users/wn1652400018/subscriptions
User
https://api.github.com/users/wn1652400018
public
MEMBER
I also experienced this issue this morning. Looks like something specific to windows.
I'm working on a fix
2021-01-08T09:57:11Z
https://github.com/huggingface/datasets/issues/807#issuecomment-756663498
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDc1NjY2MzQ5OA==
https://api.github.com/repos/huggingface/datasets/issues/comments/756663498/reactions
2021-01-08T09:57:11Z
https://api.github.com/repos/huggingface/datasets/issues/comments/756663498
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
MEMBER
I opened a PR @wn1652400018
2021-01-08T13:47:35Z
https://github.com/huggingface/datasets/issues/807#issuecomment-756763832
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDc1Njc2MzgzMg==
https://api.github.com/repos/huggingface/datasets/issues/comments/756763832/reactions
2021-01-08T13:47:35Z
https://api.github.com/repos/huggingface/datasets/issues/comments/756763832
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 opened a PR @wn1652400018

Thanks you!, It works very well.
2021-01-11T01:30:27Z
https://github.com/huggingface/datasets/issues/807#issuecomment-757583320
https://api.github.com/repos/huggingface/datasets/issues/807
MDEyOklzc3VlQ29tbWVudDc1NzU4MzMyMA==
https://api.github.com/repos/huggingface/datasets/issues/comments/757583320/reactions
2021-01-11T01:30:27Z
https://api.github.com/repos/huggingface/datasets/issues/comments/757583320
https://avatars.githubusercontent.com/u/35511759?v=4
https://api.github.com/users/wn1652400018/events{/privacy}
https://api.github.com/users/wn1652400018/followers
https://api.github.com/users/wn1652400018/following{/other_user}
https://api.github.com/users/wn1652400018/gists{/gist_id}
https://github.com/wn1652400018
wn1652400018
MDQ6VXNlcjM1NTExNzU5
https://api.github.com/users/wn1652400018/orgs
https://api.github.com/users/wn1652400018/received_events
https://api.github.com/users/wn1652400018/repos
https://api.github.com/users/wn1652400018/starred{/owner}{/repo}
https://api.github.com/users/wn1652400018/subscriptions
User
https://api.github.com/users/wn1652400018
public
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:** 
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers

df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)

print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)

# output:
datasets version:  1.1.2
pytorch version:  1.5.0
transformers version:  3.2.0
```

when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError                           Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)

~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
    588     # Download/copy dataset processing script
    589     module_path, hash = prepare_module(
--> 590         path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
    591     )
    592 

~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
    266         file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
    267         try:
--> 268             local_path = cached_path(file_path, download_config=download_config)
    269         except FileNotFoundError:
    270             if script_version is not None:

~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
    306             user_agent=download_config.user_agent,
    307             local_files_only=download_config.local_files_only,
--> 308             use_etag=download_config.use_etag,
    309         )
    310     elif os.path.exists(url_or_filename):

~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
    473         elif response is not None and response.status_code == 404:
    474             raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475         raise ConnectionError("Couldn't reach {}".format(url))
    476 
    477     # Try a second time

ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```

And I try to connect to the site with requests:
```
import requests

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

Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError                    Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
    159             conn = connection.create_connection(
--> 160                 (self._dns_host, self.port), self.timeout, **extra_kw
    161             )

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
     83     if err is not None:
---> 84         raise err
     85 

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
     73                 sock.bind(source_address)
---> 74             sock.connect(sa)
     75             return sock

ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

NewConnectionError                        Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    676                 headers=headers,
--> 677                 chunked=chunked,
    678             )

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    380         try:
--> 381             self._validate_conn(conn)
    382         except (SocketTimeout, BaseSSLError) as e:

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
    975         if not getattr(conn, "sock", None):  # AppEngine might not have  `.sock`
--> 976             conn.connect()
    977 

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
    307         # Add certificate verification
--> 308         conn = self._new_conn()
    309         hostname = self.host

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
    171             raise NewConnectionError(
--> 172                 self, "Failed to establish a new connection: %s" % e
    173             )

NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

MaxRetryError                             Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
    448                     retries=self.max_retries,
--> 449                     timeout=timeout
    450                 )

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    724             retries = retries.increment(
--> 725                 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    726             )

~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
    438         if new_retry.is_exhausted():
--> 439             raise MaxRetryError(_pool, url, error or ResponseError(cause))
    440 

MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

ConnectionError                           Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
      1 import requests
      2 
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")

~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
    102 
    103     kwargs.setdefault('allow_redirects', False)
--> 104     return request('head', url, **kwargs)
    105 
    106 

~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
     59     # cases, and look like a memory leak in others.
     60     with sessions.Session() as session:
---> 61         return session.request(method=method, url=url, **kwargs)
     62 
     63 

~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
    528         }
    529         send_kwargs.update(settings)
--> 530         resp = self.send(prep, **send_kwargs)
    531 
    532         return resp

~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
    641 
    642         # Send the request
--> 643         r = adapter.send(request, **kwargs)
    644 
    645         # Total elapsed time of the request (approximately)

~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
    514                 raise SSLError(e, request=request)
    515 
--> 516             raise ConnectionError(e, request=request)
    517 
    518         except ClosedPoolError as e:

ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```