# Why is it giving me this error enen if i am submitting the smoke test in the specified format?

**URL:** <https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875>\
**Category:** Youth Mental Health: Automated Abstraction\
**Created:** [October 24, 2024, 5:27am UTC](https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875 "2024-10-24T05:27:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NITYAM](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@NITYAM](https://community.drivendata.org/u/NITYAM)\
**Post date:** [October 24, 2024, 5:27am UTC](https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875/1 "2024-10-24T05:27:13Z")

</div>

- main
- tee /code\_execution/submission/log.txt
- expected\_filename=main.py
- cd /code\_execution  
++ zip -sf ./submission/submission.zip
- submission\_files=‘Archive contains:  
submission/  
submission/data/  
submission/data/submission\_format.csv  
submission/data/test\_features.csv  
submission/main.py  
Total 5 entries (61900 bytes)’
- grep -q main.py
- echo ‘Unpacking submission’  
Unpacking submission
- unzip ./submission/submission.zip -d ./  
Archive: ./submission/submission.zip  
creating: ./submission/data/  
inflating: ./submission/data/submission\_format.csv  
inflating: ./submission/data/test\_features.csv  
inflating: ./submission/main.py
- ls -alh  
total 228K  
drwxr-xr-x 1 runtimeuser runtimeuser 4.0K Oct 23 14:16 .  
drwxr-xr-x 1 root root 4.0K Oct 23 14:16 …  
drwxr-xr-x 3 runtimeuser runtimeuser 4.0K Oct 17 18:38 .pixi  
drwxrwxrwx 2 root root 4.0K Oct 23 14:16 data  
-rw-r–r-- 1 root root 205K Oct 17 18:38 pixi.lock  
-rw-r–r-- 1 root root 1.6K Oct 17 18:38 pixi.toml  
drwxrwxrwx 2 root root 4.0K Oct 23 14:16 submission  
drwxr-xr-x 2 runtimeuser runtimeuser 4.0K Oct 17 18:38 tests
- true
- echo ‘Running smoke test’  
Running smoke test
- pixi run -e gpu python main.py  
/code\_execution/.pixi/envs/gpu/bin/python: can’t open file ‘/code\_execution/main.py’: [Errno 2] No such file or directory  
How to debug it?

---

<div class="post-metadata">

**Author:** ![kwetstone](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kwetstone](https://community.drivendata.org/u/kwetstone)\
**Post date:** [October 24, 2024, 1:21pm UTC](https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875/2 "2024-10-24T13:21:57Z")

</div>

@NITYAM It’s hard to know without seeing your `main.py` file. Are these logs from testing a submission locally, or submitting a smoke test on the competition platform?

---

<div class="post-metadata">

**Author:** ![kwetstone](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kwetstone](https://community.drivendata.org/u/kwetstone)\
**Post date:** [October 24, 2024, 1:29pm UTC](https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875/3 "2024-10-24T13:29:45Z")

</div>

If this is a smoke test submission, the fact that you are including the test features and submission format in your `submission.zip` may be causing issues.

```auto
inflating: ./submission/data/submission_format.csv
inflating: ./submission/data/test_features.csv

```

The submission format and test features will be available in the code execution [runtime](https://www.drivendata.org/competitions/295/cdc-automated-abstraction/page/923/#what-to-submit), and should not be included in your `submission.zip`. I hope this helps!

---

<div class="post-metadata">

**Author:** ![jayqi](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.drivendata.org/jayqi/32/924_2.png) [@jayqi](https://community.drivendata.org/u/jayqi)\
**Post date:** [October 24, 2024, 3:03pm UTC](https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875/4 "2024-10-24T15:03:36Z")

</div>

Hi @NITYAM,

Based on what I’m seeing from this part of the logs:

```auto
unzip ./submission/submission.zip -d ./
Archive: ./submission/submission.zip
creating: ./submission/data/
inflating: ./submission/data/submission_format.csv
inflating: ./submission/data/test_features.csv
inflating: ./submission/main.py

```

It looks like your ZIP archive is not quite in the expected format. We expect the `main.py` file in the archive root, but you have it nested inside a folder at `submission/main.py`. See [this thread](https://community.drivendata.org/t/submissions-are-failing/10780)—which had the same issue—for more detail on ways to correctly structure your submission files.

---

<div class="post-metadata">

**Author:** ![NITYAM](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@NITYAM](https://community.drivendata.org/u/NITYAM)\
**Post date:** [October 26, 2024, 1:08pm UTC](https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875/5 "2024-10-26T13:08:09Z")

</div>

- main
- tee /code\_execution/submission/log.txt
- expected\_filename=main.py
- cd /code\_execution  
++ zip -sf ./submission/submission.zip
- submission\_files=‘Archive contains:  
assets/label\_encoders.joblib  
assets/other\_model.h5  
assets/special\_model.h5  
assets/tokenizer.joblib  
main.py  
Total 5 entries (25315807 bytes)’
- grep -q main.py
- echo ‘Unpacking submission’  
Unpacking submission
- unzip ./submission/submission.zip -d ./  
Archive: ./submission/submission.zip  
extracting: ./assets/label\_encoders.joblib  
extracting: ./assets/other\_model.h5  
extracting: ./assets/special\_model.h5  
extracting: ./assets/tokenizer.joblib  
extracting: ./main.py
- ls -alh  
total 236K  
drwxr-xr-x 1 runtimeuser runtimeuser 4.0K Oct 26 12:53 .  
drwxr-xr-x 1 root root 4.0K Oct 26 12:53 …  
drwxr-xr-x 3 runtimeuser runtimeuser 4.0K Oct 17 18:38 .pixi  
drwxr-xr-x 2 runtimeuser runtimeuser 4.0K Oct 26 12:53 assets  
drwxrwxrwx 2 root root 4.0K Oct 26 12:53 data  
-rw-rw-rw- 1 runtimeuser runtimeuser 2.6K Oct 26 2024 main.py  
-rw-r–r-- 1 root root 205K Oct 17 18:38 pixi.lock  
-rw-r–r-- 1 root root 1.6K Oct 17 18:38 pixi.toml  
drwxrwxrwx 2 root root 4.0K Oct 26 12:53 submission  
drwxr-xr-x 2 runtimeuser runtimeuser 4.0K Oct 17 18:38 tests
- true
- echo ‘Running smoke test’  
Running smoke test
- pixi run -e gpu python main.py  
Traceback (most recent call last):  
File “/code\_execution/main.py”, line 5, in   
from tensorflow.keras.models import load\_model  
ModuleNotFoundError: No module named ‘tensorflow’ now giving me this error on my subbmission

---

<div class="post-metadata">

**Author:** ![kwetstone](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kwetstone](https://community.drivendata.org/u/kwetstone)\
**Post date:** [October 28, 2024, 1:43pm UTC](https://community.drivendata.org/t/why-is-it-giving-me-this-error-enen-if-i-am-submitting-the-smoke-test-in-the-specified-format/10875/6 "2024-10-28T13:43:21Z")

</div>

@NITYAM This is because the code execution runtime does not currently include the `tensorflow` package. There are [instructions](https://github.com/drivendataorg/youth-mental-health-runtime?tab=readme-ov-file#updating-runtime-packages) in the runtime repository about how to add a package.

There is currently an open [pull request](https://github.com/drivendataorg/youth-mental-health-runtime/pull/25) to add tensorflow to the runtime, so once that is merged your code should be able to access tensorflow.
