# Dataset scripts are no longer supported

**URL:** <https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891>\
**Category:** 🤗Datasets\
**Created:** [July 21, 2025, 4:59am UTC](https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891 "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](https://discuss.huggingface.co/u/kajalhappy)\
**Post date:** [July 21, 2025, 4:59am UTC](https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891/1 "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](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 21, 2025, 7:36am UTC](https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891/2 "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](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 21, 2025, 12:10pm UTC](https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891/3 "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](https://discuss.huggingface.co/u/kajalhappy)\
**Post date:** [July 22, 2025, 4:53am UTC](https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891/4 "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](https://discuss.huggingface.co/u/system)\
**Post date:** [July 22, 2025, 4:53pm UTC](https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891/5 "2025-07-22T16:53:47Z")

</div>

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