ValueError: Invalid pattern: '**' can only be an entire path component (original) (raw)

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

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

lhoestq June 7, 2024, 10:56am 3

you can fix this using

pip install -U datasets huggingface_hub fsspec

and restarting your notebook kernel

Dddixyy May 26, 2025, 5:44pm 4

Works perfectly! Thank you!

daqc May 30, 2025, 8:43pm 5

I encountered this problem when I was using Google Colab and jupyter notebook. Your solution worked for me, thx :slight_smile:

Can you explain what changes with the installation of this?