# Diffusers Pipeline, Can't Connect to the Hub

**URL:** <https://discuss.huggingface.co/t/diffusers-pipeline-cant-connect-to-the-hub/84463>\
**Category:** Beginners\
**Created:** [April 30, 2024, 6:04am UTC](https://discuss.huggingface.co/t/diffusers-pipeline-cant-connect-to-the-hub/84463 "2024-04-30T06:04:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesmcbennett](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/jamesmcbennett/32/26360_2.png) [@jamesmcbennett](https://discuss.huggingface.co/u/jamesmcbennett)\
**Post date:** [April 30, 2024, 6:04am UTC](https://discuss.huggingface.co/t/diffusers-pipeline-cant-connect-to-the-hub/84463/1 "2024-04-30T06:04:51Z")

</div>

Tried to get a beginner first script working.

I have this working on muc slower laptop, but not on my desktop, so I presume not a internet provider issue. No proxy, vpn. Windows defender firewall same on both computers.

installed **pip install diffusers transformers torch accelerate scipy imageio matplotlib opencv-python**

pipe = StableDiffusionPipeline.from\_pretrained(‘runwayml/stable-diffusion-v1-5’) won’t work, nor any other model. Nothing will connect to Hugging Face, but works on my laptop.

I just reinstalled Windows and still no luck.

(diffusers) PS C:\Users\James\Desktop\creative-image-generation\> python .\txt2img\_stable\_diffusion.py  
Couldn’t connect to the Hub: (ProtocolError(‘Connection aborted.’, ConnectionResetError(10054, ‘An existing connection was forcibly closed by the remote host’, None, 10054, None)), ‘(Request ID: 78ad92d3-d368-498b-af81-5a498a559d84)’).  
Will try to load from local cache.  
Loading pipeline components…: 14%|███████████████████▍ | 1/7 [00:00\<00:00, 46.96it/s]  
Traceback (most recent call last):  
File “C:\Users\James\Desktop\creative-image-generation\txt2img\_stable\_diffusion.py”, line 15, in   
pipe = StableDiffusionPipeline.from\_pretrained(‘runwayml/stable-diffusion-v1-5’)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “C:\Users\James\miniconda3\envs\diffusers\Lib\site-packages\huggingface\_hub\utils\_validators.py”, line 119, in \_inner\_fn  
return fn(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^  
File “C:\Users\James\miniconda3\envs\diffusers\Lib\site-packages\diffusers\pipelines\pipeline\_utils.py”, line 819, in from\_pretrained  
loaded\_sub\_model = load\_sub\_model(  
^^^^^^^^^^^^^^^  
File “C:\Users\James\miniconda3\envs\diffusers\Lib\site-packages\diffusers\pipelines\pipeline\_loading\_utils.py”, line 473, in load\_sub\_model  
loaded\_sub\_model = load\_method(os.path.join(cached\_folder, name), \*\*loading\_kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “C:\Users\James\miniconda3\envs\diffusers\Lib\site-packages\huggingface\_hub\utils\_validators.py”, line 119, in \_inner\_fn  
return fn(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^  
File “C:\Users\James\miniconda3\envs\diffusers\Lib\site-packages\diffusers\models\modeling\_utils.py”, line 632, in from\_pretrained  
model\_file = \_get\_model\_file(  
^^^^^^^^^^^^^^^^  
File “C:\Users\James\miniconda3\envs\diffusers\Lib\site-packages\huggingface\_hub\utils\_validators.py”, line 119, in \_inner\_fn  
return fn(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^  
File “C:\Users\James\miniconda3\envs\diffusers\Lib\site-packages\diffusers\utils\hub\_utils.py”, line 306, in \_get\_model\_file  
raise EnvironmentError(  
OSError: Error no file named diffusion\_pytorch\_model.bin found in directory C:\Users\James.cache\huggingface\hub\models–runwayml–stable-diffusion-v1-5\snapshots\1d0c4ebf6ff58a5caecab40fa1406526bca4b5b9\unet.
