question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`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:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
beerbotboffincommented, Dec 10, 2020

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.

1reaction
EterneralAmbivalencecommented, Dec 10, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

python: [Errno 10054] An existing connection was forcibly ...
This can be caused by the two sides of the connection disagreeing over whether the connection timed out or not during a keepalive....
Read more >
[Errno 10054] An existing connection was forcibly closed by ...
[Errno 10054] An existing connection was forcibly closed by the remote host while requesting images from URL. Hi, I tried to download the...
Read more >
[WinError 10054] An existing connection was forcibly closed ...
Tells you that there was already an active connection at the place of error where you probably try to open a second one....
Read more >
[WinError 10054] An existing connection was forcibly closed ...
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host. I'm trying to scrape a series of webpages ...
Read more >
[Django] #30503: ConnectionResetError: [WinError 10054] An ...
[Django] #30503: ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host. 352 views.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found