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.
Bad file descriptor errno 9 #8344
Comments
|
Did you run youtube-dl.exe directly in cmd.exe? |
|
Nope, i am calling it from my application, and reading both standart output and error streams to check whether there was an error processing the request or not. |
|
I've played with v2 https://github.com/oguzhankahyaoglu/YoutubeListSyncronizer/blob/master/v2/Executable/YoutubeListSyncronizer.exe. Here are my steps:
Everything looks OK. How did you get the errors above? |
|
okay you were good. and my program runs fine. it just gave that error for a very specific video, the one i used in verbose log. its chris brown's run it song :) you can try to use its link for downloading. it might be a temporary error by the way. anyway if it was a temp issue, the error message should be more descriptive. Sent from my ASUS -------- Original Message --------
|
|
Pasting http://www.youtube.com/watch?v=w6QGe-pXgdI to the program leads me to a successful download. FWIW, I have .NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1 installed. |
|
Hi dude, I am getting this error again for ALL of my yt download requests. Do i get banned ? :) For debug outputs;
Another;
For possible solutions, i got these links; http://stackoverflow.com/questions/15958026/getting-errno-9-bad-file-descriptor-in-python-socket |
|
I tried to run this app from another computer and it succeeds for same urls. I think, YT has banned me. but, shouldnt i access the webpage too? Anyway, if you check the app, you will be able to download without any errors, probably. In such cases, you should provide a better error message in my opinion. YT should be sending different content for such cases. For your debugging purposes, I can provide you remote connection btw. |
|
From your logs it's a system (Windows, .NET Framework, Python, etc.) problem rather than a network one. Is it working if you run the following command directly in CMD.EXE or PowerShell?
|
|
Yes it does, but how? I am confused. I am passing these arguments to youtube-dl. |
|
Could you do more tests:
|
Hello there :)
I was developing a youtube-downloader and i was stuck with some of videos. Then i found your repository, and started using your executable by integrating to my application. My main iade was to sycn a favourite playlist for my offline-listening purposes.
Anyways, i am getting this error. This can be for a very specific issue. The video is a very old kind. I was preferring to download at most 720p quality.
If you need any details further, i can provide you. As stated below, I am using windows 7 ultimate, x64.
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://www.youtube.com/watch?v=w6QGe-pXgdI', u'-o', u'D:_Videos\YT Favourites\0259-%(title)s.%(ext)s', u'--no-continue', u'-v', u'-w', u'-i']
[debug] Encodings: locale cp1254, fs mbcs, out None, pref cp1254
[debug] youtube-dl version 2016.01.01
[debug] Python version 2.7.10 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-50911-g9efcfbe
[debug] Proxy map: {}
ERROR: [Errno 9] Bad file descriptor
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 665, in extract_info
File "youtube_dl\extractor\common.pyo", line 291, in extract
File "youtube_dl\extractor\youtube.pyo", line 1124, in _real_extract
File "youtube_dl\extractor\common.pyo", line 443, in _download_webpage
File "youtube_dl\extractor\common.pyo", line 350, in _download_webpage_handle
File "youtube_dl\extractor\common.pyo", line 323, in _request_webpage
File "youtube_dl\extractor\common.pyo", line 508, in report_download_webpage
File "youtube_dl\extractor\common.pyo", line 500, in to_screen
File "youtube_dl\YoutubeDL.pyo", line 423, in to_screen
File "youtube_dl\YoutubeDL.pyo", line 437, in to_stdout
File "youtube_dl\YoutubeDL.pyo", line 426, in _write_string
File "youtube_dl\utils.pyo", line 1142, in write_string
IOError: [Errno 9] Bad file descriptor