EMNIST in torchvision.datasets returning "HTTP Error 503: Service Unavailable"

username: AghiadHaloul
cooked: <p>I’m trying to load the EMNIST dataset but I keep getting “download failed” for this specific dataset.</p>
<blockquote>
<pre><code>Downloading https://cloudstor.aarnet.edu.au/plus/index.php/s/54h3OuGJhFLwAlQ/download to .\data\datasets\EMNIST\EMNIST\raw\emnist.zip
Failed download. Trying https -&gt; http instead. Downloading http://cloudstor.aarnet.edu.au/plus/index.php/s/54h3OuGJhFLwAlQ/download to .\data\datasets\EMNIST\EMNIST\raw\emnist.zip
.....
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 503: Service Unavailable
</code></pre>
</blockquote>
<pre><code class="lang-auto">Downloading and extracting zip archive
Downloading https://cloudstor.aarnet.edu.au/plus/index.php/s/54h3OuGJhFLwAlQ/download to .\data\datasets\EMNIST\EMNIST\raw\emnist.zip
Failed download. Trying https -&gt; http instead. Downloading http://cloudstor.aarnet.edu.au/plus/index.php/s/54h3OuGJhFLwAlQ/download to .\data\datasets\EMNIST\EMNIST\raw\emnist.zip
Traceback (most recent call last):
  File "C:\Users\..env_path..\lib\site-packages\torchvision\datasets\utils.py", line 84, in download_url
    reporthook=gen_bar_updater()
  File "C:\Users\..env_path..\lib\urllib\request.py", line 247, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "C:\Users\..env_path..\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 503: Service Unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/..repo_path../Dataset.py", line 5, in &lt;module&gt;
    class Dataset:
  File "C:/Users/..repo_path../Dataset.py", line 65, in Dataset
    transforms.ToTensor()
  File "C:\Users\..env_path..\lib\site-packages\torchvision\datasets\mnist.py", line 237, in __init__
    super(EMNIST, self).__init__(root, **kwargs)
  File "C:\Users\..env_path..\lib\site-packages\torchvision\datasets\mnist.py", line 68, in __init__
    self.download()
  File "C:\Users\..env_path..\lib\site-packages\torchvision\datasets\mnist.py", line 260, in download
    remove_finished=True)
  File "C:\Users\..env_path..\lib\site-packages\torchvision\datasets\utils.py", line 248, in download_and_extract_archive
    download_url(url, download_root, filename, md5)
  File "C:\Users\..env_path..\lib\site-packages\torchvision\datasets\utils.py", line 93, in download_url
    reporthook=gen_bar_updater()
  File "C:\Users\..env_path..\lib\urllib\request.py", line 247, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "C:\Users\..env_path..\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 563, in error
    result = self._call_chain(*args)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 755, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "C:\Users\..env_path..\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 503: Service Unavailable
</code></pre>
<p>Does the dataset source need updating or is there something I’m doing wrong here?<br>
Thanks</p>

username: Tony-Y
cooked: <p>URL is wrong. Try <a href="https://github.com/Tony-Y/pytorch_warmup/blob/master/examples/emnist/download.py" rel="nofollow noopener">download.py</a></p>