Submission fails

@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:

❯ 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:

❯ 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.

2 Likes