# Issue with huggingface.load\_dataset()

**URL:** <https://discuss.huggingface.co/t/issue-with-huggingface-load-dataset/134809>\
**Category:** Spaces\
**Created:** [January 8, 2025, 8:57am UTC](https://discuss.huggingface.co/t/issue-with-huggingface-load-dataset/134809 "2025-01-08T08:57:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![leomaurodesenv](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/leomaurodesenv/32/50249_2.png) [@leomaurodesenv](https://discuss.huggingface.co/u/leomaurodesenv)\
**Post date:** [January 8, 2025, 11:56am UTC](https://discuss.huggingface.co/t/issue-with-huggingface-load-dataset/134809/4 "2025-01-08T11:56:57Z")

</div>

I just fixed. Step-by-step:

- Downgrade the Python from 3.10 to 3.9
- Fix Streamlit sdk version
- Update the requirements.txt with latest `datasets` and `huggingface_hub` libraries.

README.md

```auto
sdk: streamlit
sdk_version: 1.33.0
python_version: 3.9
app_file: app.py
...

```

requirements.txt

```auto
# HuggingFace
datasets==3.2.0
huggingface_hub==0.27.0

```

app.py

```auto
from datasets import load_dataset

dataset_name = "PedroCJardim/QASports"
dataset_split = "basketball"
dataset = load_dataset(dataset_name, name=dataset_split)

```

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/9/e/9e14b1f5a3f59d6b632e323d8e2855c1045fd313.png)

---

_[View the full topic](https://discuss.huggingface.co/t/issue-with-huggingface-load-dataset/134809)._
