# Submission fails

**URL:** <https://community.drivendata.org/t/submission-fails/7072>\
**Category:** On Cloud N\
**Created:** [January 14, 2022, 3:32pm UTC](https://community.drivendata.org/t/submission-fails/7072 "2022-01-14T15:32:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![masawdah](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@masawdah](https://community.drivendata.org/u/masawdah)\
**Post date:** [January 14, 2022, 3:32pm UTC](https://community.drivendata.org/t/submission-fails/7072/1 "2022-01-14T15:32:23Z")

</div>

I got the following error ‘ERROR: Could not find main.py in submission.zip’ but the main.py is already there and unpacked:

- echo ‘Unpacking submission…’  
Unpacking submission…
- unzip ./submission/submission.zip -d ./  
Archive: ./submission/submission.zip  
creating: ./submission/assets/  
inflating: ./submission/assets/cloud\_model.pt  
inflating: ./submission/cloud\_dataset.py  
inflating: ./submission/cloud\_model.py  
inflating: ./submission/main.py  
creating: ./submission/predictions/

---

<div class="post-metadata">

**Author:** ![ajijohn](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@ajijohn](https://community.drivendata.org/u/ajijohn)\
**Post date:** [January 15, 2022, 7:18am UTC](https://community.drivendata.org/t/submission-fails/7072/2 "2022-01-15T07:18:06Z")

</div>

Looks like submission folder should not be in it, see below

benchmark\_src  
├── **pycache**  
│ ├── cloud\_dataset.cpython-38.pyc  
│ ├── cloud\_model.cpython-38.pyc  
│ ├── losses.cpython-38.pyc  
│ └── main.cpython-38.pyc  
├── assets  
│ └── cloud\_model.pt  
├── cloud\_dataset.py  
├── cloud\_model.py  
├── losses.py  
├── main.py  
└── predictions

---

<div class="post-metadata">

**Author:** ![masawdah](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@masawdah](https://community.drivendata.org/u/masawdah)\
**Post date:** [January 15, 2022, 7:43am UTC](https://community.drivendata.org/t/submission-fails/7072/3 "2022-01-15T07:43:30Z")

</div>

it is no in it, but folder’s name is submission instead of benchmark\_src

---

<div class="post-metadata">

**Author:** ![Aditu](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Aditu](https://community.drivendata.org/u/Aditu)\
**Post date:** [January 15, 2022, 9:31am UTC](https://community.drivendata.org/t/submission-fails/7072/4 "2022-01-15T09:31:36Z")

</div>

Hello, have you figured out a fix for this? I’m facing this exact same issue.

I’m currently trying to run the submission on the Code execution runtime I cloned from Github, to see if debugging’ll be easier there.

Code execution definitely has its complications, relative to just submitting model predictions.

---

<div class="post-metadata">

**Author:** ![masawdah](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@masawdah](https://community.drivendata.org/u/masawdah)\
**Post date:** [January 15, 2022, 9:54am UTC](https://community.drivendata.org/t/submission-fails/7072/5 "2022-01-15T09:54:12Z")

</div>

No, I haven’t. It looks weird error I followed the same structure and applied the same code in baseline notebook.

![Capture](https://canada1.discourse-cdn.com/flex028/uploads/drivendata1/original/2X/0/0ed7834d0d21a7e471d8d10b9b67a921ab3ffad5.jpeg)

---

<div class="post-metadata">

**Author:** ![Aditu](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Aditu](https://community.drivendata.org/u/Aditu)\
**Post date:** [January 15, 2022, 9:57am UTC](https://community.drivendata.org/t/submission-fails/7072/6 "2022-01-15T09:57:37Z")

</div>

I’ve just tested submissions.zip on the cloned Code execution runtime. It’s the exact same issue.

The issue was the same, even when submissions.zip contained just one file: main.py.

The issue seems clearly with the runtime and not submissions.zip, but I’m wondering how other people have gotten their own code to run.

 ![Screenshot 2022-01-15 at 10.45.57 AM](https://canada1.discourse-cdn.com/flex028/uploads/drivendata1/original/2X/4/491c0bb5b1d7b49f10bfef4d47aaab23d243502e.png)

@rbgb Support’ll be very appreciated on this, thanks.

---

<div class="post-metadata">

**Author:** ![masawdah](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@masawdah](https://community.drivendata.org/u/masawdah)\
**Post date:** [January 15, 2022, 10:00am UTC](https://community.drivendata.org/t/submission-fails/7072/7 "2022-01-15T10:00:09Z")

</div>

YES, exactly. two days of submissions and same issue and no clue what is wrong

---

<div class="post-metadata">

**Author:** ![Aditu](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Aditu](https://community.drivendata.org/u/Aditu)\
**Post date:** [January 15, 2022, 10:00am UTC](https://community.drivendata.org/t/submission-fails/7072/8 "2022-01-15T10:00:24Z")

</div>

@glipstein @Emily

Support’ll be very appreciated on this, thanks.

---

<div class="post-metadata">

**Author:** ![Aditu](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Aditu](https://community.drivendata.org/u/Aditu)\
**Post date:** [January 15, 2022, 10:01am UTC](https://community.drivendata.org/t/submission-fails/7072/9 "2022-01-15T10:01:20Z")

</div>

@tglazer @bull

Support’ll be very appreciated on this, thanks.

---

<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:** [January 16, 2022, 1:24am UTC](https://community.drivendata.org/t/submission-fails/7072/11 "2022-01-16T01:24:24Z")

</div>

@ajijohn Pointed out the issue correctly. Your zip archive contains an extra folder named `submission` in it. You can tell because in the screenshot you provide in the list of files after it runs `ls -alh` it lists a folder called “submission,” but it does not list a file called `main.py`.

If you are using linux or macos, you can look at the structure of your zip archive with `unzip -l`. For example, if your submission just had a single file named `main.py` in it, the output might look like this:

```auto
❯ unzip -l submission.zip
Archive: submission.zip
  Length Date Time Name
--------- ---------- ----- ----
        0 01-15-2022 16:50 main.py
--------- -------
        0 1 file

```

However, this is what it would look like if your submission contained an extra folder named `submission`:

```auto
❯ unzip -l submission.zip
Archive: submission.zip
  Length Date Time Name
--------- ---------- ----- ----
        0 01-15-2022 17:18 submission/main.py
--------- -------
        0 1 file

```

You may need to look at the manual for the tool you are using to create the archive so that it does not contain the extra folder. The exact syntax will depend on your operating system and version of your tools.

---

<div class="post-metadata">

**Author:** ![Aditu](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Aditu](https://community.drivendata.org/u/Aditu)\
**Post date:** [January 16, 2022, 2:00pm UTC](https://community.drivendata.org/t/submission-fails/7072/12 "2022-01-16T14:00:08Z")

</div>

Ah great, thanks!

It wasn’t at all clear to me why I was experiencing that issue. The “zip” command seems to nest the given folder by default.

Getting past that enables the execution runtime find main.py, thanks again! 🙂
