Closed not-lain closed 6 months ago
I know it works with other repos but not sure why this one is broken, I can get around this just fine with hf_hub_download
, but that would mean me downloading each and every file manually but i'm too cute for that, and cloning
the repo works fine too but it's not huggingface tool so I give it an L .
TLDR; this is me without snapshot_download
: (┬┬﹏┬┬)
Hi @not-lain, I think that for some reason there is a problem in your setup. In huggingface_hub
v0.20.3 (the one you are reporting), the headers
parameters in not passed on that line (see https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/_snapshot_download.py#L176). headers
has been introduced in v0.22.0 (see https://github.com/huggingface/huggingface_hub/blob/v0.22.0/src/huggingface_hub/_snapshot_download.py#L184). But it's not an issue specific to this repo id.
FWIW, latest version is v.0.22.2
so I just advice you to pip uninstall -y huggingface_hub
+ pip install -U huggingface_hub
(to be sure corrupted install is completely removed). I'll close this issue but let me know if the problem persists.
Describe the bug
cannot download a public repo
Reproduction
from huggingface_hub import snapshot_download snapshot_download("Maikou/Michelangelo")
Logs
System info