# Error : "No module named 'google.colab' "

**URL:** <https://community.deeplearning.ai/t/error-no-module-named-google-colab/121530>\
**Category:** Convolutional Neural Networks in TensorFlow\
**Tags:** week-module-1\
**Created:** [April 22, 2022, 4:29pm UTC](https://community.deeplearning.ai/t/error-no-module-named-google-colab/121530 "2022-04-22T16:29:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamanasish\_Debnath](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kamanasish\_Debnath](https://community.deeplearning.ai/u/Kamanasish_Debnath)\
**Post date:** [April 22, 2022, 4:29pm UTC](https://community.deeplearning.ai/t/error-no-module-named-google-colab/121530/1 "2022-04-22T16:29:28Z")

</div>

Hi, my code is running perfectly on google colab but I get the following error once the assignment is graded.

There was a problem compiling the code from your notebook. Details:  
No module named ‘google.colab’

Can anyone please help ?

---

<div class="post-metadata">

**Author:** ![a-zarta](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/a-zarta/32/162492_2.png) [@a-zarta](https://community.deeplearning.ai/u/a-zarta)\
**Post date:** [April 22, 2022, 4:59pm UTC](https://community.deeplearning.ai/t/error-no-module-named-google-colab/121530/2 "2022-04-22T16:59:44Z")

</div>

Hi @Kamanasish_Debnath, did you move the `from google.colab import files` statement outside of the `download_history ` function? Make sure it is inside the function to avoid this error.

You can also delete that cell before submitting your notebook if you have already downloaded your training history.

---

<div class="post-metadata">

**Author:** ![Kamanasish\_Debnath](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kamanasish\_Debnath](https://community.deeplearning.ai/u/Kamanasish_Debnath)\
**Post date:** [April 22, 2022, 5:06pm UTC](https://community.deeplearning.ai/t/error-no-module-named-google-colab/121530/3 "2022-04-22T17:06:55Z")

</div>

Hi… thanks for replying. I deleted the download\_history cell and it works now. Thanks 🙂
