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.
error in python module YoutubeDL fileno = out.fileno() #4733
Comments
|
@jaimeMF Pseudo-files don't have |
|
I cannot reproduce this strange error (even on Windows), but we can simply catch it and fall back to the default output stream. I've done exactly that in youtube-dl 2015.01.23.3. I'd appreciate feedback of whether this has fixed your issue. |
Thank You for the great app;
But now I´m having some troubles in using youtube-dl as python module. I´ve updated my last version in 05.01.2015. Since then i get the same error over and over and couldn´t download any file any more.
Can you help me ?
Here´s the error:
Traceback (most recent call last):
File "<pyshell#10>", line 1, in
nfo =ydl.extract_info('http://www.youtube.com/watch?v=giNdyLY46Mo')
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\YoutubeDL.py", line 600, in extract_info
ie_result = ie.extract(url)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\extractor\common.py", line 260, in extract
return self._real_extract(url)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\extractor\youtube.py", line 802, in _real_extract
video_webpage = self._download_webpage(url, video_id)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\extractor\common.py", line 388, in _download_webpage
res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\extractor\common.py", line 312, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\extractor\common.py", line 286, in _request_webpage
self.report_download_webpage(video_id)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\extractor\common.py", line 452, in report_download_webpage
self.to_screen('%s: Downloading webpage' % video_id)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\extractor\common.py", line 444, in to_screen
self._downloader.to_screen('[%s] %s' % (self.IE_NAME, msg))
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\YoutubeDL.py", line 374, in to_screen
return self.to_stdout(message, skip_eol, check_quiet=True)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\YoutubeDL.py", line 388, in to_stdout
self._write_string(output, self._screen_file)
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\YoutubeDL.py", line 377, in _write_string
write_string(s, out=out, encoding=self.params.get('encoding'))
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\utils.py", line 938, in write_string
if _windows_write_string(s, out):
File "C:\Python27\lib\site-packages\youtube_dl-2015.01.16-py2.7.egg\youtube_dl\utils.py", line 874, in _windows_write_string
fileno = out.fileno()
UnsupportedOperation: fileno