# Dataset scripts are no longer supported

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-scripts-are-no-longer-supported%2F163891%3E%5C
**Category:** 🤗Datasets\
**Created:** [July 21, 2025, 4:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-scripts-are-no-longer-supported%2F163891 "2025-07-21T04:59:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kajalhappy](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@kajalhappy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkajalhappy)%5C
**Post date:** [July 21, 2025, 4:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-scripts-are-no-longer-supported%2F163891%2F1 "2025-07-21T04:59:31Z")

</div>

I was using earlier GeneratorBasedBuilder class for loading database now i am getting below error :  
Exception occurred: Dataset scripts are no longer supported.

using load\_dataset for loading script . but somehow it is not supported not

plz tell me what is the other way to load database using GeneratorBasedBuilder class i need to pre process the database before saving in arrow or other format.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 21, 2025, 7:36am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-scripts-are-no-longer-supported%2F163891%2F2 "2025-07-21T07:36:00Z")

</div>

Seems [`trust_remote_code` is deprecated in `datasets` `4.0.0`](https://github.com/LiveCodeBench/LiveCodeBench/issues/108).  
So quick workarounds:

```auto
pip install datasets<4.0.0 

```

In addition, it seems that [downgrading `huggingface_hub` may be necessary in some cases](https://github.com/mahmoodlab/HEST/issues/110#issuecomment-3092684622).

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 21, 2025, 12:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-scripts-are-no-longer-supported%2F163891%2F3 "2025-07-21T12:10:26Z")

</div>

I clarify this just in case. [It seems that support for the function to build datasets _locally_ would continue](https://github.com/huggingface/datasets/pull/7592#issuecomment-3079918731).

---

<div class="post-metadata">

**Author:** ![kajalhappy](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@kajalhappy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkajalhappy)%5C
**Post date:** [July 22, 2025, 4:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-scripts-are-no-longer-supported%2F163891%2F4 "2025-07-22T04:53:17Z")

</div>

yes, we can not use load\_dataset if implementing a Builder class.  
so need to explicitly call builder class and generate dataset.  
builder.download\_and\_prepare()  
dataset = builder.as\_dataset(split=Split.TRAIN)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [July 22, 2025, 4:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-scripts-are-no-longer-supported%2F163891%2F5 "2025-07-22T16:53:47Z")

</div>

Closed on July 22, 2025, 4:53pm UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
