Zipped file is not valid

When submitting a ZIP file, I get:

There was a problem processing your submission.
File: Zipped file is not valid. It must contain a single csv file with your submission.

I am pretty sure the file is valid!

$ zip -T
test of OK
$ unzip -l
  Length      Date    Time    Name
---------  ---------- -----   ----
545649538  09-06-2020 00:01   submission.csv
---------                     -------
545649538                     1 file

Software version: Zip 3.0 (July 5th 2008) on MacOS Mojave 10.14.6


1 Like

I am facing also the same problem


I got this error message as well when playing with different decimal precisions.

The only way I managed to solve this problem is using float_format=’%.6f’

Using python and pandas : df.to_csv('', compression='zip', float_format='%.6f')

I managed to get up to %.7f but for some reason I got issues with %.8f

Hope this helps

1 Like

Sorry I did not see you are on a Mac ! :slight_smile:
Mac does not have a single file in the zip archive. It also contains a __MACOSX folder for some reason.

1 Like

Thanks for flagging this. We had some logic to prevent zip-bombing that was overly aggressive with submissions to this competition. We’ve adjusted that, so you shouldn’t hit this anymore.

Let us know if you do, and enjoy the competition!