Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in python module YoutubeDL #2820

Closed
carvalhomr opened this issue Apr 28, 2014 · 1 comment
Closed

error in python module YoutubeDL #2820

carvalhomr opened this issue Apr 28, 2014 · 1 comment

Comments

@carvalhomr
Copy link

@carvalhomr carvalhomr commented Apr 28, 2014

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

@phihag phihag closed this in a383a98 Apr 30, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Apr 30, 2014

Thank you for the report. This bug should be fixed in youtube-dl 2014.04.30.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.