# Bug with datasets configs?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%3E%5C
**Category:** 🤗Datasets\
**Created:** [September 6, 2023, 8:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773 "2023-09-06T08:47:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![scampion](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/scampion/32/27508_2.png) [@scampion](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fscampion)%5C
**Post date:** [September 6, 2023, 8:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%2F1 "2023-09-06T08:47:55Z")

</div>

Hi Everyone,  
I created several config, one per lang, for that dataset : [EuropeanParliament/cellar\_eurovoc · Datasets at Hugging Face](https://huggingface.co/datasets/EuropeanParliament/cellar_eurovoc)

```auto
configs:
  - config_name: default
    data_files: cellar.jsonl.gz
  - config_name: en-GB
    data_files: cellar_en.jsonl.gz
  - config_name: fr-FR
    data_files: cellar_fr.jsonl.gz

```

It’s appear correctly (more or less) in the website but not in the code

```auto
from datasets import get_dataset_config_names
get_dataset_config_names("EuropeanParliament/cellar_eurovoc")

```

I still have one set

Any idea?

---

<div class="post-metadata">

**Author:** ![severo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/severo/32/27449_2.png) [@severo](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsevero)%5C
**Post date:** [September 6, 2023, 9:17am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%2F2 "2023-09-06T09:17:55Z")

</div>

cc @polinaeterna

---

<div class="post-metadata">

**Author:** ![scampion](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/scampion/32/27508_2.png) [@scampion](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fscampion)%5C
**Post date:** [September 6, 2023, 11:44am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%2F3 "2023-09-06T11:44:31Z")

</div>

Hello @severo , nous avons travaillé dans la meme équipe à l’IRISA a priori, le monde est petit  
++

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmariosasko)%5C
**Post date:** [September 6, 2023, 1:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%2F4 "2023-09-06T13:07:32Z")

</div>

Hi! The “dataset configs in the YAML” feature requires the latest release of `datasets` (`>=2.14.0`), so updating the installation with `pip install -U datasets` should fix the problem.

---

<div class="post-metadata">

**Author:** ![scampion](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/scampion/32/27508_2.png) [@scampion](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fscampion)%5C
**Post date:** [September 6, 2023, 1:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%2F5 "2023-09-06T13:58:33Z")

</div>

Thx I updated it but I may have a cache issue now

```auto
import datasets
datasets. __version__

```

> ‘2.14.4’

and

```auto
from datasets import get_dataset_config_names
get_dataset_config_names("EuropeanParliament/cellar_eurovoc")

```

if you want to test, give

> AttributeError: ‘NoneType’ object has no attribute ‘BUILDER\_CONFIG\_CLASS’

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmariosasko)%5C
**Post date:** [September 6, 2023, 3:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%2F6 "2023-09-06T15:54:16Z")

</div>

Try passing `download_mode="force_redownload"` to redownload the files or, if this doesn’t help, `cache_dir="path/to/new/cache_dir"` to use a different directory for caching.

---

<div class="post-metadata">

**Author:** ![scampion](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/scampion/32/27508_2.png) [@scampion](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fscampion)%5C
**Post date:** [September 7, 2023, 10:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbug-with-datasets-configs%2F53773%2F7 "2023-09-07T10:13:53Z")

</div>

fixed 👍  
thx
