WinError 10054
See original GitHub issue`r’‘’ Attempting to download a 4 min 37 sec video returns following error:
Traceback (most recent call last): File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\urllib\request.py”, line 1317, in do_open h.request(req.get_method(), req.selector, req.data, headers, File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\http\client.py”, line 1230, in request self._send_request(method, url, body, headers, encode_chunked) File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\http\client.py”, line 1276, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\http\client.py”, line 1225, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\http\client.py”, line 1004, in _send_output self.send(msg) File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\http\client.py”, line 965, in send self.sock.sendall(data) File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\ssl.py”, line 1204, in sendall v = self.send(byte_view[count:]) File “C:\Users\bayki\AppData\Local\Programs\Python\Python38\lib\ssl.py”, line 1173, in send return self._sslobj.write(data) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host ‘’’
from pytube import YouTube
url = ‘https://www.youtube.com/watch?v=xQzOk6HSs0c’ YouTube(url).streams.get_highest_resolution().download()`
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top GitHub Comments
It was the same problem here. I had updated to 10.1.0, but IDLE was still pointing at 9.6.4. I manually deleted all of the old packages and re-installed and all is well with the world again.
Thanks @tfdahlin, much appreciated.
Yep works great for me now! Forgot to check which version I had before updating, but upgrading to 10.1.0 fixed the issue. Also this works just fine over VPN as well.
Thanks so much @tfdahlin