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 #2820
Comments
|
Thank you for the report. This bug should be fixed in youtube-dl 2014.04.30.1. |
Dear,
I´ve started studying the YouTubeDl module for python and got a constant error message.
The script I´ve used was taken from the youtube-dl/doc/module_guide.
Please need help to figure it out what´s wrong
from youtube_dl import YoutubeDL
ydl = YoutubeDL()
ydl.add_default_info_extractors()
nfo =ydl.extract_info('http://www.youtube.com/watch?v=giNdyLY46Mo')
I had this error message:
Traceback (most recent call last):
File "C:\Python27\teste.py", line 31, in
nfo =ydl.extract_info('http://www.youtube.com/watch?v=giNdyLY46Mo')
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\YoutubeDL.py", line 514, in extract_info
ie_result = ie.extract(url)
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\common.py", line 160, in extract
self.initialize()
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\common.py", line 155, in initialize
self._real_initialize()
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\youtube.py", line 125, in _real_initialize
if not self._set_language():
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\youtube.py", line 52, in _set_language
fatal=False))
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\common.py", line 273, in _download_webpage
res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal)
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\common.py", line 214, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal)
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\common.py", line 190, in _request_webpage
self.to_screen(u'%s' % (note,))
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\extractor\common.py", line 311, in to_screen
self._downloader.to_screen(u'[%s] %s' % (self.IE_NAME, msg))
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\YoutubeDL.py", line 287, in to_screen
return self.to_stdout(message, skip_eol, check_quiet=True)
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\YoutubeDL.py", line 301, in to_stdout
self._write_string(output, self._screen_file)
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\YoutubeDL.py", line 290, in _write_string
write_string(s, out=out, encoding=self.params.get('encoding'))
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\utils.py", line 987, in write_string
if _windows_write_string(s, out):
File "C:\Python27\lib\site-packages\youtube_dl-2014.03.25-py2.7.egg\youtube_dl\utils.py", line 926, in _windows_write_string
fileno = out.fileno()
UnsupportedOperation: fileno
I´m using Python 2.7.6 in windows 8
Thanks in advance