# Submit script giving ModuleNotFoundError: No module named ‘gnomad’

**URL:** <https://discuss.hail.is/t/submit-script-giving-modulenotfounderror-no-module-named-gnomad/3902>\
**Category:** Hail Query & hailctl\
**Created:** [July 16, 2024, 5:22pm UTC](https://discuss.hail.is/t/submit-script-giving-modulenotfounderror-no-module-named-gnomad/3902 "2024-07-16T17:22:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![klaricch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/klaricch/32/643_2.png) [@klaricch](https://discuss.hail.is/u/klaricch)\
**Post date:** [July 16, 2024, 5:22pm UTC](https://discuss.hail.is/t/submit-script-giving-modulenotfounderror-no-module-named-gnomad/3902/1 "2024-07-16T17:22:19Z")

</div>

I’m trying to run `hailctl dataproc submit kmlt test.py` where test.py has

`from gnomad.resources.grch38.gnomad import DOWNSAMPLINGS`

but I’m getting “ModuleNotFoundError: No module named ‘gnomad’”

I have the following for my HAIL\_SCRIPTS in my bash\_profile:  
“export HAIL\_SCRIPTS=/Users/kristen/code/gnomad-constraint/gnomad\_constraint:/Users/kristen/code/gnomad\_methods/gnomad”

Do you have any suggestsions on how to resolve this error?

---

<div class="post-metadata">

**Author:** ![iris-garden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/iris-garden/32/828_2.png) [@iris-garden](https://discuss.hail.is/u/iris-garden)\
**Post date:** [July 16, 2024, 5:54pm UTC](https://discuss.hail.is/t/submit-script-giving-modulenotfounderror-no-module-named-gnomad/3902/2 "2024-07-16T17:54:36Z")

</div>

Hi @klarrich,

I think you need to pass `gnomad` into the `packages` argument for the command you’re running when creating the Dataproc cluster in order to install it on there, like so:

```bash
hailctl dataproc start <cluster-name> --packages gnomad

```

Hope that helps!

---

<div class="post-metadata">

**Author:** ![klaricch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/klaricch/32/643_2.png) [@klaricch](https://discuss.hail.is/u/klaricch)\
**Post date:** [July 16, 2024, 7:30pm UTC](https://discuss.hail.is/t/submit-script-giving-modulenotfounderror-no-module-named-gnomad/3902/3 "2024-07-16T19:30:28Z")

</div>

Thanks for your reply! To clarify, passing the repos to packages when starting the cluster still works fine, but I want the submit script to recognize changes made in the paths supplied to HAIL\_SCRIPTS (which has worked in the past) for quicker iterations.

---

<div class="post-metadata">

**Author:** ![iris-garden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/iris-garden/32/828_2.png) [@iris-garden](https://discuss.hail.is/u/iris-garden)\
**Post date:** [July 16, 2024, 7:47pm UTC](https://discuss.hail.is/t/submit-script-giving-modulenotfounderror-no-module-named-gnomad/3902/4 "2024-07-16T19:47:05Z")

</div>

Sorry, I missed that when reading your question the first time!

What does the output of the following commands look like?

```bash
ls -R /Users/kristen/code/gnomad-constraint
ls -R /Users/kristen/code/gnomad_methods

```

---

<div class="post-metadata">

**Author:** ![klaricch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/klaricch/32/643_2.png) [@klaricch](https://discuss.hail.is/u/klaricch)\
**Post date:** [July 16, 2024, 8:17pm UTC](https://discuss.hail.is/t/submit-script-giving-modulenotfounderror-no-module-named-gnomad/3902/5 "2024-07-16T20:17:21Z")

</div>

Oh I see, I lost an ` __init__.py` file, adding it back in works, thank you!
