Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report with a Solution #161

Closed
XingzhiZhou opened this issue Nov 29, 2023 · 1 comment
Closed

Bug Report with a Solution #161

XingzhiZhou opened this issue Nov 29, 2023 · 1 comment

Comments

@XingzhiZhou
Copy link

Bug Description
When I download cifar10-c, it reports this bug.

robustbench/zenodo_download.py:82, in zenodo_download(record_id, filenames_to_download, save_dir)
     76     raise DownloadError(
     77         "The hash of the downloaded file does not match"
     78         " the expected one.")
     79 print("Download finished, extracting...")
     80 shutil.unpack_archive(filename,
     81                       extract_dir=save_dir,
---> 82                       format=file["type"])
     83 print("Downloaded and extracted.")

KeyError: 'type'

Possible Solution
I checked the variable file here, and it does not contain "type" key now. I guess the reason is that the update of zenodo, such that file does not contain key type anymore. We can solve this by the following modification.

---> 82                       format=file['key'].split('.')[-1])
@fra31 fra31 mentioned this issue Jan 16, 2024
@fra31
Copy link
Member

fra31 commented Jan 17, 2024

Hi,

thanks for the suggestion, integrated with #164.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants