Error 401 when trying to read the dataset
Hi everyone, I'm trying to read the german dataset in streaming mode using a Jupyter Notebook, but I get the following error:
ConnectionError: Couldn't reach https://huggingface.co/datasets/uonlp/CulturaX/resolve/main/dataset_infos.json (error 401)
This is my code:
from datasets import load_dataset
import huggingface_hub
huggingface_hub.login(my_token)
ds = load_dataset("uonlp/CulturaX", "de", token=True, streaming=True)
The login is successful, but after some output lines of "Resolving data files", I get the above error message.
Am I doing something wrong?
Hi,
I have tried running your code and did not encounter any issues.
You might want to try: generating a new access token, or checking your network connection, or creating a new Python environment and reinstalling the libraries and then trying the code again. Alternatively, you can try running your code on Google Colab.
Hi, thank you for the response.
I already tried to generate a new access token, but it doesn't fix the problem. The network is ok, so maybe the problem is with some libraries, as you suggested. Can I ask you which version of the datasets
library are you using? I'm using version 2.14.6
I fixed the problem switching to datasets
version 2.0.0 and replacing token
parameter with use_auth_token
:
ds = load_dataset("uonlp/CulturaX", "de", use_auth_token=True, streaming=True)
Thank you again!