Issue with huggingface.load_dataset()

Alanturner2
Wed, 08 Jan 2025 09:05:09 +0000

Hi! It seems like you’ve encountered two distinct issues after updating the huggingface_hub library.

1. KeyError: ‘tags’ – This error usually occurs when the dataset you’re trying to load has missing metadata or if you’re using an incompatible version of the dataset. It could also be caused by outdated versions of datasets or huggingface_hub. Updating both might help resolve this.

2. ERROR: Docker Hub Container Image Library | App Containerization not found – This issue is due to the use of a non-existent Docker image. The python:3.1 image does not exist (the latest stable version of Python is 3.10 or 3.11). You should update your Dockerfile or requirements to use a valid image, such as python:3.8, python:3.9, or python:3.10.

Suggested Fix:

Roll back or update your Hugging Face libraries to ensure compatibility:
pip install --upgrade huggingface_hub datasets

Correct the Docker image reference:

Update your Dockerfile to use a valid Python image, e.g.:
FROM python:3.9

Hope this help!