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

mistake zipfile.BadZipFile: File is not a zip file #311

Closed
lightwindcy opened this issue Sep 10, 2024 · 1 comment
Closed

mistake zipfile.BadZipFile: File is not a zip file #311

lightwindcy opened this issue Sep 10, 2024 · 1 comment

Comments

@lightwindcy
Copy link

Describe your question.

when i use follow code

from tdc import BenchmarkGroup
group = BenchmarkGroup(name = 'ADMET_Group', path = 'data/')
predictions_list = []

Downloading Benchmark Group...
0.00iB [00:00, ?iB/s]
Extracting zip file...
Traceback (most recent call last):
File "E:/pretrain/TopoPool-main/down.py", line 2, in
group = BenchmarkGroup(name = 'ADMET_Group', path = 'data/')
File "C:\Users\xjp\anaconda3\envs\pytorch_env\lib\site-packages\tdc\benchmark_deprecated.py", line 96, in init
self.name = bm_group_load(name, path)
File "C:\Users\xjp\anaconda3\envs\pytorch_env\lib\site-packages\tdc\utils\load.py", line 585, in bm_group_load
name = bm_download_wrapper(name, path)
File "C:\Users\xjp\anaconda3\envs\pytorch_env\lib\site-packages\tdc\utils\load.py", line 266, in bm_download_wrapper
with ZipFile(os.path.join(path, name + ".zip"), "r") as zip:
File "C:\Users\xjp\anaconda3\envs\pytorch_env\lib\zipfile.py", line 1269, in init
self._RealGetContents()
File "C:\Users\xjp\anaconda3\envs\pytorch_env\lib\zipfile.py", line 1336, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

how to deal with it?

@amva13
Copy link
Member

amva13 commented Sep 10, 2024

have you tried setting path to "./data" or leaving it to None

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