# Submission runs fine locally but smoketest fials

**URL:** <https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979>\
**Category:** Youth Mental Health: Automated Abstraction\
**Created:** [November 18, 2024, 12:30am UTC](https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979 "2024-11-18T00:30:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AngeloKitio](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@AngeloKitio](https://community.drivendata.org/u/AngeloKitio)\
**Post date:** [November 18, 2024, 12:30am UTC](https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979/1 "2024-11-18T00:30:42Z")

</div>

here is the error:

- submission\_files=‘Archive contains:  
assets/  
data/  
main.py  
data/smoke\_test\_labels.csv  
data/test\_features.csv  
data/submission\_format.csv  
assets/model\_weights.pth  
Total 7 entries (501215859 bytes)’
- grep -q main.py
- echo ‘Unpacking submission’  
Unpacking submission
- unzip ./submission/submission.zip -d ./  
Archive: ./submission/submission.zip  
creating: ./assets/  
inflating: ./main.py  
error: cannot create ./data/smoke\_test\_labels.csv  
Read-only file system  
replace ./data/test\_features.csv? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL  
(EOF or read error, treating as “[N]one” …)  
inflating: ./assets/model\_weights.pth

---

<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:** [November 18, 2024, 2:17pm UTC](https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979/2 "2024-11-18T14:17:17Z")

</div>

Hi @AngeloKitio! The submission is failing because it is attempting to save to the `data` directory, which is read-only in the code execution runtime. Your zipped submission should not include any files saved under `data/`. `data/submission_format.csv` and `data/test_features.csv` will already exist in the runtime.

To run your submission locally, you can save files in your local `data` folder rather than including those files in your zipped submission.

---

<div class="post-metadata">

**Author:** ![AngeloKitio](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@AngeloKitio](https://community.drivendata.org/u/AngeloKitio)\
**Post date:** [November 18, 2024, 6:13pm UTC](https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979/3 "2024-11-18T18:13:01Z")

</div>

Hello, Thank you for your help. That seems to have solved my problem. However, I encountered another issue:

OSError: We couldn’t connect to ‘[https://huggingface.co](https://huggingface.co)’ to load this file, couldn’t find it in the cached files and it looks like roberta-base is not the path to a directory containing a file named config.json.  
Checkout your internet connection or see how to run the library in offline mode at ‘[Installation](https://huggingface.co/docs/transformers/installation#offline-mode)’.

any advice on this one?

---

<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:** [November 18, 2024, 6:55pm UTC](https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979/4 "2024-11-18T18:55:37Z")

</div>

@AngeloKitio good question. There is no internet access in the runtime, so any pretrained models you wish to use should be included in your `submission.zip` file. There are more details on the code submission [page](https://www.drivendata.org/competitions/295/cdc-automated-abstraction/page/923/), and an example of how to download and include model weights in the [benchmark blog post](https://drivendata.co/blog/automated-abstraction-benchmark).

---

<div class="post-metadata">

**Author:** ![AngeloKitio](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@AngeloKitio](https://community.drivendata.org/u/AngeloKitio)\
**Post date:** [November 20, 2024, 7:48am UTC](https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979/5 "2024-11-20T07:48:41Z")

</div>

I have dowloaded all the necessary files butstill got this error OSError: We couldn’t connect to ‘[https://huggingface.co](https://huggingface.co)’ to load this file, couldn’t find it in the cached files and it looks like submission/assets is not the path to a directory containing a file named config.json.

---

<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:** [November 20, 2024, 3:31pm UTC](https://community.drivendata.org/t/submission-runs-fine-locally-but-smoketest-fials/10979/6 "2024-11-20T15:31:11Z")

</div>

@AngeloKitio This means your submission is still trying to access the internet, because it does not have all of the modeling files it needs to load the pre-trained model. I would suggest revisiting the way that you are downloading the model and loading it in the runtime, to make sure that you have all the necessary model files.

You could also check this locally by attempting to run your code with Wi-Fi turned off on your computer.
