# Dataset not downloading

**URL:** <https://discuss.huggingface.co/t/dataset-not-downloading/36664>\
**Category:** 🤗Datasets\
**Created:** [April 15, 2023, 7:45am UTC](https://discuss.huggingface.co/t/dataset-not-downloading/36664 "2023-04-15T07:45:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomersagi](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tomersagi](https://discuss.huggingface.co/u/tomersagi)\
**Post date:** [April 15, 2023, 7:45am UTC](https://discuss.huggingface.co/t/dataset-not-downloading/36664/1 "2023-04-15T07:45:16Z")

</div>

Hi there,  
I am trying to create a new dataset: [mehdie/sefaria · Datasets at Hugging Face](https://huggingface.co/datasets/mehdie/sefaria)  
When I try to use it to train a tokenizer, the data itself (data directory) does not get downloaded. I get 0 files and 0 records. Did I do something wrong? I have a custom \_split\_generators function. Maybe something needs to be done there?  
Thanks  
Tomer

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/64813_2.png) [@lhoestq](https://discuss.huggingface.co/u/lhoestq)\
**Post date:** [April 15, 2023, 7:35pm UTC](https://discuss.huggingface.co/t/dataset-not-downloading/36664/2 "2023-04-15T19:35:50Z")

</div>

Hi ! In your script you seem to use `glob` but it’s not necessary.

You can use `dl_manager.download()` to download a list of parquet files, and it will return the list of downloaded parquet file paths

---

<div class="post-metadata">

**Author:** ![tomersagi](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tomersagi](https://discuss.huggingface.co/u/tomersagi)\
**Post date:** [April 17, 2023, 6:31am UTC](https://discuss.huggingface.co/t/dataset-not-downloading/36664/3 "2023-04-17T06:31:44Z")

</div>

Hi,  
The dL\_manager.download() function returns a list of text files that are around 132bytes and contain Things like this:

```auto
version https://git-lfs.github.com/spec/v1
oid sha256:08f7e86610f17d1addd6999e39c969aea926902d0cf616e8d5bd90f41ba124d1
size 7518478

```

Interestingly, in the same directory each of these files is accompanied by a file with the same name and a .json extension that contains the URL to one of my missing files:

```auto
{"url": "https://huggingface.co/datasets/mehdie/sefaria/raw/main/data/Chasidut_english.parquet", "etag": null}

```

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/64813_2.png) [@lhoestq](https://discuss.huggingface.co/u/lhoestq)\
**Post date:** [April 19, 2023, 10:23am UTC](https://discuss.huggingface.co/t/dataset-not-downloading/36664/4 "2023-04-19T10:23:17Z")

</div>

The URLs were not pointing to the file itself, but to its git lfs metadata file. You should use

```python
https://huggingface.co/datasets/mehdie/sefaria/resolve/main/data/Chasidut_english.parquet

```

instead of

```python
https://huggingface.co/datasets/mehdie/sefaria/raw/main/data/Chasidut_english.parquet

```
