401 error encountered when downloading dataset
#2
by
REELSUN
- opened
Hi,
I'm just trying to download the dataset with the downloading instructions . A simple running of
wget $SRC/lm/lm_base.zip
gives me the following error:
huggingface-cli login
_| _| _| _| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _|_|_|_| _|_| _|_|_| _|_|_|_|
_| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|
_|_|_|_| _| _| _| _|_| _| _|_| _| _| _| _| _| _|_| _|_|_| _|_|_|_| _| _|_|_|
_| _| _| _| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|
_| _| _|_| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _| _| _| _|_|_| _|_|_|_|
A token is already saved on your machine. Run `huggingface-cli whoami` to get more information or `huggingface-cli logout` if you want to log out.
Setting a new token will erase the existing one.
To log in, `huggingface_hub` requires a token generated from https://huggingface.co/settings/tokens .
Enter your token (input will not be visible):
Add token as git credential? (Y/n) n
Token is valid (permission: read).
The token Read has been saved to /root/.cache/huggingface/stored_tokens
Your token has been saved to /root/.cache/huggingface/token
Login successful.
The current active token is: Read
(.venv) root@d6def92e8e0c:/workspace# huggingface-cli whoami
REELSUN
(.venv) root@d6def92e8e0c:/workspace# wget $SRC/lm/lm_base.zip # Base archive
--2025-04-15 19:51:28-- https://huggingface.co/datasets/bop-benchmark/datasets/resolve/main/lm/lm_base.zip
Resolving huggingface.co (huggingface.co)... 18.161.21.41, 18.161.21.125, 18.161.21.22, ...
Connecting to huggingface.co (huggingface.co)|18.161.21.41|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
You can see that I have logged in to my huggingface account with an access token with Read permission.
I really appreciate it if anyone could help me with this issue.
Thanks,
Li
It seems that the repository structure has changed. Please refer to the link below:
https://groups.google.com/g/bop-benchmark/c/6jc3ZeNf6Uo/m/Cv0yOSU7AAAJ
If you want to download the dataset using wget, you can do so as follows:
export SRC=https://huggingface.co/datasets/bop-benchmark
wget $SRC/lm/resolve/main/lm_base.zip
Thanks a lot!
For others having the same issue, option 2 of downloading dataset with huggingface-cli now becomes:
export LOCAL_DIR=./datasets
export DATASET_NAME=hope
huggingface-cli download bop-benchmark/$DATASET_NAME --include "*.zip" --local-dir $LOCAL_DIR --repo-type=dataset