ValueError: Invalid pattern: '**' can only be an entire path component

No matter what combination of packages versions I use, I get ValueError: Invalid pattern: ‘**’ can only be an entire path component
error on the line ----> 4 ds_train = load_dataset(path=ds_name, split=“train”)
tried updating and downgrading fsspec, datasets, huggingface_hub
but nothing seems to work
I used kaggle notebook

2 Likes

Yes same issue from local jupyter notebook. However it is loading from google colab.

1 Like

you can fix this using

pip install -U datasets huggingface_hub fsspec

and restarting your notebook kernel

3 Likes