Support Zstandard compressed files
NONE
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.

```
!pip install zstandard
from datasets import load_dataset

lds = load_dataset(
    "json",
    data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
    split="train",
    streaming=True,
)

WARNING:datasets.builder:Using custom data configuration default-a1d9e8eaedd958cd
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-12-5b4fdcb8e6d5>](https://localhost:8080/#) in <module>
      6 )
      7 
----> 8 next(iter(law_dataset_streamed))

17 frames
[/usr/local/lib/python3.8/dist-packages/fsspec/core.py](https://localhost:8080/#) in get_compression(urlpath, compression)
    485         compression = infer_compression(urlpath)
    486     if compression is not None and compression not in compr:
--> 487         raise ValueError("Compression type %s not supported" % compression)
    488     return compression
    489 

ValueError: Compression type zstd not supported
```
2022-12-23T08:10:13Z
https://github.com/huggingface/datasets/issues/2572#issuecomment-1363718916
https://api.github.com/repos/huggingface/datasets/issues/2572
IC_kwDODunzps5RSLME
https://api.github.com/repos/huggingface/datasets/issues/comments/1363718916/reactions
2022-12-23T08:10:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1363718916
https://avatars.githubusercontent.com/u/51160232?v=4
https://api.github.com/users/valmetisrinivas/events{/privacy}
https://api.github.com/users/valmetisrinivas/followers
https://api.github.com/users/valmetisrinivas/following{/other_user}
https://api.github.com/users/valmetisrinivas/gists{/gist_id}
https://github.com/valmetisrinivas
valmetisrinivas
MDQ6VXNlcjUxMTYwMjMy
https://api.github.com/users/valmetisrinivas/orgs
https://api.github.com/users/valmetisrinivas/received_events
https://api.github.com/users/valmetisrinivas/repos
https://api.github.com/users/valmetisrinivas/starred{/owner}{/repo}
https://api.github.com/users/valmetisrinivas/subscriptions
User
https://api.github.com/users/valmetisrinivas
public
MEMBER
I just tried on google colab and this works:
```python
!pip install zstandard
!pip install datasets
from datasets import load_dataset

lds = load_dataset(
    "json",
    data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
    split="train",
    streaming=True,
)
next(iter(lds))
```

Can you check that you have a correct installation of `zstandard` ?
2023-01-03T11:37:12Z
https://github.com/huggingface/datasets/issues/2572#issuecomment-1369669314
https://api.github.com/repos/huggingface/datasets/issues/2572
IC_kwDODunzps5Ro37C
https://api.github.com/repos/huggingface/datasets/issues/comments/1369669314/reactions
2023-01-03T11:37:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1369669314
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
@lhoestq please note [this](https://github.com/huggingface/datasets/issues/2572#issuecomment-1363718916) is a duplicate of:
- #5388
2023-01-03T14:22:44Z
https://github.com/huggingface/datasets/issues/2572#issuecomment-1369825528
https://api.github.com/repos/huggingface/datasets/issues/2572
IC_kwDODunzps5RpeD4
https://api.github.com/repos/huggingface/datasets/issues/comments/1369825528/reactions
2023-01-03T14:22:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1369825528
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
MEMBER
Oh thanks I missed that one !
2023-01-03T15:31:11Z
https://github.com/huggingface/datasets/issues/2572#issuecomment-1369904780
https://api.github.com/repos/huggingface/datasets/issues/2572
IC_kwDODunzps5RpxaM
https://api.github.com/repos/huggingface/datasets/issues/comments/1369904780/reactions
2023-01-03T15:31:11Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1369904780
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 just tried on google colab and this works:
> 
> ```python
> !pip install zstandard
> !pip install datasets
> from datasets import load_dataset
> 
> lds = load_dataset(
>     "json",
>     data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
>     split="train",
>     streaming=True,
> )
> next(iter(lds))
> ```
> 
> Can you check that you have a correct installation of `zstandard` ?

I was downloading datasets first then was doing zstandard installation and that was causing the issue. This was highlighted by the Hugging Face staff and that helped. Now the issue is resolved. Thank you.
2023-01-03T15:34:01Z
https://github.com/huggingface/datasets/issues/2572#issuecomment-1369908019
https://api.github.com/repos/huggingface/datasets/issues/2572
IC_kwDODunzps5RpyMz
https://api.github.com/repos/huggingface/datasets/issues/comments/1369908019/reactions
2023-01-03T15:34:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1369908019
https://avatars.githubusercontent.com/u/51160232?v=4
https://api.github.com/users/valmetisrinivas/events{/privacy}
https://api.github.com/users/valmetisrinivas/followers
https://api.github.com/users/valmetisrinivas/following{/other_user}
https://api.github.com/users/valmetisrinivas/gists{/gist_id}
https://github.com/valmetisrinivas
valmetisrinivas
MDQ6VXNlcjUxMTYwMjMy
https://api.github.com/users/valmetisrinivas/orgs
https://api.github.com/users/valmetisrinivas/received_events
https://api.github.com/users/valmetisrinivas/repos
https://api.github.com/users/valmetisrinivas/starred{/owner}{/repo}
https://api.github.com/users/valmetisrinivas/subscriptions
User
https://api.github.com/users/valmetisrinivas
public
Add support for Zstandard compressed files: https://facebook.github.io/zstd/