Getting Value Error while loading a dataset..
COLLABORATOR
Hi! I can't reproduce this error locally (Mac) or in Colab. What version of `datasets` are you using?
2022-12-23T13:44:19Z
https://github.com/huggingface/datasets/issues/5388#issuecomment-1363964370
https://api.github.com/repos/huggingface/datasets/issues/5388
IC_kwDODunzps5RTHHS
https://api.github.com/repos/huggingface/datasets/issues/comments/1363964370/reactions
2022-12-23T13:44:19Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1363964370
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
NONE
Hi [mariosasko](https://github.com/mariosasko), the datasets version is '2.8.0'.
2022-12-24T07:37:00Z
https://github.com/huggingface/datasets/issues/5388#issuecomment-1364479921
https://api.github.com/repos/huggingface/datasets/issues/5388
IC_kwDODunzps5RVE-x
https://api.github.com/repos/huggingface/datasets/issues/comments/1364479921/reactions
2022-12-24T07:37:00Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1364479921
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
@valmetisrinivas you get that error because you imported `datasets` (and thus `fsspec`) before installing `zstandard`.

Please, restart your Colab runtime and execute the install commands before importing `datasets`:
```python
!pip install datasets
!pip install zstandard

from datasets import load_dataset

ds = load_dataset(
    "json",
    data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
    split="train",
    streaming=True,
)
next(iter(ds))
```
2022-12-27T17:59:09Z
https://github.com/huggingface/datasets/issues/5388#issuecomment-1366079343
https://api.github.com/repos/huggingface/datasets/issues/5388
IC_kwDODunzps5RbLdv
https://api.github.com/repos/huggingface/datasets/issues/comments/1366079343/reactions
2022-12-27T21:17:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1366079343
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
NONE
> @valmetisrinivas you get that error because you imported `datasets` (and thus `fsspec`) before installing `zstandard`.
> 
> Please, restart your Colab runtime and execute the install commands before importing `datasets`:
> 
> ```python
> !pip install datasets
> !pip install zstandard
> 
> from datasets import load_dataset
> 
> ds = load_dataset(
>     "json",
>     data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
>     split="train",
>     streaming=True,
> )
> next(iter(ds))
> ```

I guess that was the problem, importing datasets before the installation of zstandard. Thank you for the feedback. 
2022-12-29T08:36:32Z
https://github.com/huggingface/datasets/issues/5388#issuecomment-1367156026
https://api.github.com/repos/huggingface/datasets/issues/5388
IC_kwDODunzps5RfSU6
https://api.github.com/repos/huggingface/datasets/issues/comments/1367156026/reactions
2022-12-29T08:36:32Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1367156026
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
### Describe the bug

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.

```
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
```

### Steps to reproduce the bug

```
!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,
)
```

### Expected behavior

I expect an iterable object as the output 'lds' to be created.

### Environment info

Windows laptop with Google Colab notebook