Chapter 3 questions

John6666
Tue, 15 Jul 2025 01:10:38 +0000

Oh… So we need !pip install -U datasets huggingface_hub[hf_xet] fsspec …

github.com/huggingface/datasets

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

opened 07:28PM - 16 Mar 24 UTC

closed 11:32AM - 13 May 24 UTC

JPonsa

### Describe the bug ValueError: Invalid pattern: '**' can only be an entire pa…th component when loading any dataset ### Steps to reproduce the bug import datasets ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style") ### Expected behavior loading the dataset successfully ### Environment info - `datasets` version: 2.18.0 - Platform: Windows-10-10.0.22631-SP0 - Python version: 3.11.7 - `huggingface_hub` version: 0.20.3 - PyArrow version: 15.0.0 - Pandas version: 2.2.1 - `fsspec` version: 2023.12.2

The issue was caused by an incompatibility between the versions of datasets, huggingface-hub and fsspec.