:exclamation: DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE :exclamation:
lack of information will lead to closure of the issue
Describe the bug
I'm having some problems trying to download videos and audio. The script hangs without throwing any error code, it just seems like the download never starts for very long time than it will works.
I have tried different versions of Python (3.12 and 3.13), different versions of pytubefix and different computers without encountering any kind of problem like bot detection and so on.
My script works fine with a virtual machine running on Kali Linux 2024.3 but doesn't work on different machines running W11 and MacOS.
I figured out how to run the script on all machines, I have to use my cell phone hotspot except for the virtual machine which works fine on the default LAN.
To recapt. On W11 and MacOS using LAN the download starts after about 4/5 minutes, on my virtual machine it's instant.
Using hotspot from other source is istant on evey platform.
Anyone have any ideas?
code that was used that resulted in the bug
from pytubefix import YouTube
from pytubefix.exceptions import PytubeFixError
if __name__ == '__main__':
try:
print('start')
music = (YouTube('https://www.youtube.com/watch?v=sa6u_Pnj_JU').streams.get_audio_only()
.download(output_path="/path/to/dir"))
except PytubeFixError as e:
print(e)
Expected behavior
PyTubeFixError or a download
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 11/MacOS
Python Version [3.12/3.13]
Pytubefix Version [last]
Additional context
Add any other context about the problem here.
Update... now is incredibly slow to start the download even on the virtual machine.
And i got the followig error:
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host.
:exclamation: DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE :exclamation:
lack of information will lead to closure of the issue
Describe the bug
I'm having some problems trying to download videos and audio. The script hangs without throwing any error code, it just seems like the download never starts for very long time than it will works. I have tried different versions of Python (3.12 and 3.13), different versions of pytubefix and different computers without encountering any kind of problem like bot detection and so on. My script works fine with a virtual machine running on Kali Linux 2024.3 but doesn't work on different machines running W11 and MacOS. I figured out how to run the script on all machines, I have to use my cell phone hotspot except for the virtual machine which works fine on the default LAN. To recapt. On W11 and MacOS using LAN the download starts after about 4/5 minutes, on my virtual machine it's instant. Using hotspot from other source is istant on evey platform. Anyone have any ideas?
code that was used that resulted in the bug
Expected behavior PyTubeFixError or a download
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.