# C4W3\_Assignment

**URL:** <https://community.deeplearning.ai/t/c4w3-assignment/254995>\
**Category:** Generative Deep Learning with TensorFlow\
**Tags:** week-module-3\
**Created:** [January 10, 2023, 1:37pm UTC](https://community.deeplearning.ai/t/c4w3-assignment/254995 "2023-01-10T13:37:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![794406612](https://avatars.discourse-cdn.com/v4/letter/7/a9adbd/32.png) [@794406612](https://community.deeplearning.ai/u/794406612)\
**Post date:** [January 10, 2023, 1:37pm UTC](https://community.deeplearning.ai/t/c4w3-assignment/254995/1 "2023-01-10T13:37:54Z")

</div>

```auto
make the data directory
try:
  os.mkdir('/tmp/anime')
except OSError:
  pass

# download the zipped dataset to the data directory
data_url = "https://storage.googleapis.com/laurencemoroney-blog.appspot.com/Resources/anime-faces.zip"
data_file_name = "animefaces.zip"
download_dir = '/tmp/anime/'
urllib.request.urlretrieve(data_url, data_file_name)

# extract the zip file
zip_ref = zipfile.ZipFile(data_file_name, 'r')
zip_ref.extractall(download_dir)
zip_ref.close()

```

then get an error

```auto
HTTPError Traceback (most recent call last)
<ipython-input-3-34b559a04612> in <module>
      9 data_file_name = "animefaces.zip"
     10 download_dir = '/tmp/anime/'
---> 11 urllib.request.urlretrieve(data_url, data_file_name)
     12 
     13 # extract the zip file

6 frames
/usr/lib/python3.8/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
    647 class HTTPDefaultErrorHandler(BaseHandler):
    648 def http_error_default(self, req, fp, code, msg, hdrs):
--> 649 raise HTTPError(req.full_url, code, msg, hdrs, fp)
    650 
    651 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 404: Not Found

```

is that URL wrong, or I do some thing wrong?

---

<div class="post-metadata">

**Author:** ![Wendy](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/wendy/32/8167_2.png) [@Wendy](https://community.deeplearning.ai/u/Wendy)\
**Post date:** [January 10, 2023, 6:55pm UTC](https://community.deeplearning.ai/t/c4w3-assignment/254995/2 "2023-01-10T18:55:31Z")

</div>

@794406612, you’re not doing anything wrong. The GCP bucket containing this file (and others for this course) is down. This issue has been escalated and they are trying to get it back up asap.

Watch [this topic](https://community.deeplearning.ai/t/file-is-not-a-zip-file/254618) for updates.

---

<div class="post-metadata">

**Author:** ![794406612](https://avatars.discourse-cdn.com/v4/letter/7/a9adbd/32.png) [@794406612](https://community.deeplearning.ai/u/794406612)\
**Post date:** [January 10, 2023, 11:59pm UTC](https://community.deeplearning.ai/t/c4w3-assignment/254995/3 "2023-01-10T23:59:49Z")

</div>

ok. it seems I should wait until they fix this problem, thank you very much.

---

<div class="post-metadata">

**Author:** ![BwandoWando](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/bwandowando/32/32696_2.png) [@BwandoWando](https://community.deeplearning.ai/u/BwandoWando)\
**Post date:** [January 11, 2023, 12:45am UTC](https://community.deeplearning.ai/t/c4w3-assignment/254995/4 "2023-01-11T00:45:50Z")

</div>

@794406612 Thank you very much, I just logged into this forum to report the same issue and you’ve beaten me to it. Oh well, will just have to wait.
