Error when running example: `RuntimeError: Dataset scripts are no longer supported, but found github-code.py`
#11
by
0xnurl
- opened
I'm running the code from the official doc:
from datasets import load_dataset
ds = load_dataset("codeparrot/github-code", streaming=True, split="train")
print(next(iter(ds)))
And getting:
Traceback (most recent call last):
File "example.py", line 3, in <module>
ds = load_dataset(
File "/lib/python3.9/site-packages/datasets/load.py", line 1392, in load_dataset
builder_instance = load_dataset_builder(
File "/lib/python3.9/site-packages/datasets/load.py", line 1132, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/lib/python3.9/site-packages/datasets/load.py", line 1031, in dataset_module_factory
raise e1 from None
File "/lib/python3.9/site-packages/datasets/load.py", line 989, in dataset_module_factory
raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")
RuntimeError: Dataset scripts are no longer supported, but found github-code.py