# Zipped file is not valid

**URL:** https://community.drivendata.org/t/zipped-file-is-not-valid/5001
**Category:** Genetic Engineering Attribution
**Created:** [September 5, 2020, 10:15pm UTC](https://community.drivendata.org/t/zipped-file-is-not-valid/5001 "2020-09-05T22:15:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hugues](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@Hugues](https://community.drivendata.org/u/Hugues)
#### Post date: [September 5, 2020, 10:15pm UTC](https://community.drivendata.org/t/zipped-file-is-not-valid/5001/1 "2020-09-05T22:15:26Z")

</div>

Hi  
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 submission.zip
test of submission.zip OK
$ unzip -l submission.zip
Archive: submission.zip
  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

Thanks

---

<div class="post-metadata">

### Author: ![osamir](https://avatars.discourse-cdn.com/v4/letter/o/45deac/32.png) [@osamir](https://community.drivendata.org/u/osamir)
#### Post date: [September 5, 2020, 10:31pm UTC](https://community.drivendata.org/t/zipped-file-is-not-valid/5001/2 "2020-09-05T22:31:35Z")

</div>

I am facing also the same problem

---

<div class="post-metadata">

### Author: ![olivier](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@olivier](https://community.drivendata.org/u/olivier)
#### Post date: [September 6, 2020, 10:25am UTC](https://community.drivendata.org/t/zipped-file-is-not-valid/5001/3 "2020-09-06T10:25:36Z")

</div>

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('sub_file.csv.zip', compression='zip', float_format='%.6f')`

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

Hope this helps

---

<div class="post-metadata">

### Author: ![olivier](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@olivier](https://community.drivendata.org/u/olivier)
#### Post date: [September 6, 2020, 10:26am UTC](https://community.drivendata.org/t/zipped-file-is-not-valid/5001/4 "2020-09-06T10:26:38Z")

</div>

Sorry I did not see you are on a Mac ! 🙂  
Mac does not have a single file in the zip archive. It also contains a \_\_MACOSX folder for some reason.

---

<div class="post-metadata">

### Author: ![bull](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.drivendata.org/bull/32/8_2.png) [@bull](https://community.drivendata.org/u/bull)
#### Post date: [September 9, 2020, 8:37pm UTC](https://community.drivendata.org/t/zipped-file-is-not-valid/5001/5 "2020-09-09T20:37:41Z")

</div>

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!
