download-celebA-HQ icon indicating copy to clipboard operation
download-celebA-HQ copied to clipboard

zipfile.BadZipFile: File is not a zip file

Open JL321 opened this issue 5 years ago • 3 comments

The above exception was raised in running download_celebA_HQ.py

Command:

python download_celebA_HQ.py ./img_align_celeba

Output log:

Deal with file: deltas00000.zip [*] ./img_align_celeba/deltas00000.zip already exists Traceback (most recent call last): File "download_celebA_HQ.py", line 93, in with zipfile.ZipFile(save_path) as zf: File "/u/jliang/anaconda3/envs/tf_gpu/lib/python3.6/zipfile.py", line 1108, in init self._RealGetContents() File "/u/jliang/anaconda3/envs/tf_gpu/lib/python3.6/zipfile.py", line 1175, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file

Given that this issue hasn't seemed to occur previously, is this an issue associated with the file itself? Or is it due to my setup?

JL321 avatar Jan 09 '20 02:01 JL321

Seems something broken in download_file_from_google_drive downloaded deltas00000.zip is only 4K

mrgloom avatar Feb 21 '20 16:02 mrgloom

This code worked for a while, but last time I tried it, like 2 months ago, I wasn't able to run it, even with some effort... If you succeed in fixing it, It would serve the community.

Sorry to not be more helpful

nperraud avatar Feb 21 '20 18:02 nperraud

@JL321 I have the same problem. Have you solved the problem?

kouohhashi avatar Mar 28 '20 00:03 kouohhashi