Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unable to use youtube-dl #10288
Unable to use youtube-dl #10288
Comments
|
Just saw this. Are you using the latest version? Because I youtube-dl-ed your first video and it worked without problems. |
|
Yep, I'm using the latest(2016.08.10). |
|
I'm sorry, it was written there. It could be a problem with Windows 10. I'm using Linux (Arch) and it's working fine. |
|
Dang, that stinks. |
|
I hope I didn't say something wrong. I'm not a dev but I'm trying to help (sometimes I'm a bit stupid). I know there is bash for Windows after the Anniversary Update. Did you try it with youtube-dl? |
|
No worries, dude.I'm just upset because I have been trying for the past few days to find a non-sketchy way of downloading YT videos, and this one looked the most promising but, since I haven't got it to work, idk what I'm going to do. And it's kind of important too. I haven't updated to the anniversary update(I don't believe I have anyway), but I'll check for updates. |
|
If you are in a hurry, use this : https://www.4kdownload.com/download .I know the devs will fix the problem but if you really can't wait, use an alternative for the moment. |
|
Idk about that one...looks a bit sketchy.. |
|
It's fine, I used it for a long time before installing Linux. Trust me. If you don't want to try the alternative, wait for the devs to give you a solution. |
|
This is almost certainly a problem with your firewall (or an antivirus/firewall product). Have you allowed youtube-dl to contact arbitrary sites, at least DNS, HTTP and HTTPS? youtube-dl does not need any server rights, but does need to download websites and videos. McAfee seems to be one of the primary culprits, i.e. in http://superuser.com/questions/635498/socket-error-errno-10013-port-forbidden-access-permissions . |
|
I get this error too, it is a firewall issue. trying to run -F on any youtube link causes: <urlopen error [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions> (caused by URLError(OSError(10013, 'An attempt was made to access a socket in a way forbidden by its access permissions', None, 10013, None),)) A generic error message meaning some process was unable to open a socket. My Windows 10 Home Firewall is customized as it should be: Outbound is Blocked for ANY default rules by Microsoft custom rules adding youtube-dl to my custom rules does not help Any idea? Because the next thing I am going to is running tools from the Sysinternals suite and maybe even wireshark. I have to admit I was out of duty for 3 years so I may be just blind here. besides, amazing tool I have beed using for long time. I love your design ;) EDIT: Of course, if I configure my firewall to allow outbounds by default youtube-dl works as intended. |
|
Update: once I add an outbound rule to allow any programm to connect to remote port 443 - the issue is gone. outbound rule is: a default way to configure firewall settings - and it should work! however, the following is required here because nor, python.exe or any other .exe makes the connection? afaik? Can you comment on this? Because either this is python or youtube-dl fault? |
|
Ok, I fixed it. In my scenario youtube-dl wont work with windows firewall when an enviroment variable %userprofile%\folder\youtube-dl.exe - DOES NOT WORK! C:\Users\Username\folder\youtube-dl.exe WORKS! %Systemdrive% works for other executables I am using Python? |
|
@JoFu2k191 Thanks! Replacing %userprofile% with real path works! |
Using these videos seperately:
https://www.youtube.com/watch?v=kUOuHpsY8N4
https://www.youtube.com/watch?v=R1ZzCDim2wU
I receive this error and thus am unable to use the program:
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=R1ZzCDim2wU']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.08.10
[debug] Python version 3.4.4 - Windows-10-10.0.10586
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] R1ZzCDim2wU: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions> (caused by URLError(OSError(10013, 'An attempt was made to access a socket in a way forbidden by its access permissions', None, 10013, None),))
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp137uvqjd\build\youtube_dl\extractor\common.py", line 394, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp137uvqjd\build\youtube_dl\YoutubeDL.py", line 1994, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 464, in open
File "C:\Python\Python34\lib\urllib\request.py", line 482, in _open
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp137uvqjd\build\youtube_dl\utils.py", line 1003, in https_open
File "C:\Python\Python34\lib\urllib\request.py", line 1185, in do_open