dload icon indicating copy to clipboard operation
dload copied to clipboard

zipfile.BadZipFile: File is not a zip file

Open stevenvandorpe opened this issue 3 years ago • 3 comments

First of all: thanks for the great library!

I am getting the following error when using dload.git_clone. I tried with different repo's but get the same error.

dload.git_clone("https://github.com/aaaa/aaaa.git", clone_dir=LOCAL_DST)
None
Traceback (most recent call last):
  File "C:\Users\a316283\AppData\Local\Continuum\anaconda3\lib\site-packages\dload\__init__.py", line 256, in save_unzip
    with zipfile.ZipFile(zip_path, 'r') as zip_ref:
  File "C:\Users\a316283\AppData\Local\Continuum\anaconda3\lib\zipfile.py", line 1222, in __init__
    self._RealGetContents()
  File "C:\Users\a316283\AppData\Local\Continuum\anaconda3\lib\zipfile.py", line 1289, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Any ideas?

Thanks!

stevenvandorpe avatar Aug 19 '20 07:08 stevenvandorpe