Hello, I recently encountered an issue with the function huggingface.load_dataset() that raised the following error:
Error: KeyError: ‘tags’
In an attempt to resolve this, I found a tutorial (link here), which suggested updating the huggingface_hub library in the requirements.txt file. I followed the tutorial and updated the huggingface_hub version accordingly. However, after this update, I am now facing a different error.
--> ERROR: docker.io/library/python:3.1: not found
Hi! It seems like you’ve encountered two distinct issues after updating the huggingface_hub library.
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.
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.: