Error with downloading models and datasets with pytorch

Abdelkareem_Elkhateb: <p>I am trying to download a dataset into my environment with PyTorch and I download cell never finished!</p>
<p><a href="https://preview.redd.it/qxetjqhnzcq91.png?utm_medium=android_app&amp;utm_source=share&amp;width=1901&amp;format=png&amp;auto=webp&amp;s=0ebacf8ebf2deae9b4033498d34eab864767e268" class="onebox" target="_blank" rel="noopener nofollow ugc">https://preview.redd.it/qxetjqhnzcq91.png?utm_medium=android_app&amp;utm_source=share&amp;width=1901&amp;format=png&amp;auto=webp&amp;s=0ebacf8ebf2deae9b4033498d34eab864767e268</a></p>
<p>Another piece of information: I am using jupyter notebook with vs.<br>
I think this error happens when I am trying to download a model or dataset and press interrupt.<br>
But when I press restart kernel or run the cell again the cell doesn’t finish downloading!<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/8/8/88ae782e0870b6f78f64812db4ce122c725617bc.png" data-download-href="https://discuss.pytorch.org/uploads/default/88ae782e0870b6f78f64812db4ce122c725617bc" title="Screenshot from 2022-10-07 06-56-36"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/8/8/88ae782e0870b6f78f64812db4ce122c725617bc_2_690x107.png" alt="Screenshot from 2022-10-07 06-56-36" data-base62-sha1="jv8Jzz7rXohhcAr3JYrGsYu9IRu" width="690" height="107" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/8/8/88ae782e0870b6f78f64812db4ce122c725617bc_2_690x107.png, https://discuss.pytorch.org/uploads/default/optimized/3X/8/8/88ae782e0870b6f78f64812db4ce122c725617bc_2_1035x160.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/8/8/88ae782e0870b6f78f64812db4ce122c725617bc_2_1380x214.png 2x" data-dominant-color="383B46"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot from 2022-10-07 06-56-36</span><span class="informations">1676×262 38.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

nivek: <p>Are you using HuggingFace’s <code>datasets</code> library? You may get a better response on how to debug if you ask on their forum/GitHub?</p>

Abdelkareem_Elkhateb: <p>No, it’s not Hugging  face <img src="https://discuss.pytorch.org/images/emoji/apple/pensive.png?v=12" title=":pensive:" class="emoji" alt=":pensive:" loading="lazy" width="20" height="20"></p>

ptrblck: <aside class="quote no-group" data-username="Abdelkareem_Elkhateb" data-post="1" data-topic="162985">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/abdelkareem_elkhateb/48/53890_2.png" class="avatar"> Abdelkareem_Elkhateb:</div>
<blockquote>
<p>I think this error happens when I am trying to download a model or dataset and press interrupt.</p>
</blockquote>
</aside>
<p>Maybe the partially downloaded data is corrupt and the Python lib to download it might not be able to detect it properly. Could you check the <code>'data'</code> folder, delete the CIFAR10 dataset there, and rerun your code? Additionally, try to run the code in a terminal, which might give you more error outputs.</p>

Abdelkareem_Elkhateb: <p>I tried to delete the filed that content the data and tried again with pyrcharm, jupyter notebook, vs but no thing works!<br>
It works Okey in kaggle!</p>

ptrblck: <p>Were you able to download these datasets before on this system? Im wondering if you are running into some permission issue which could disallow Python to download or save files on your workstation.</p>

Abdelkareem_Elkhateb: <p>I was able to download them before!</p>