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

python version to use ? #57

Closed
yvestan opened this issue Jan 18, 2011 · 7 comments
Closed

python version to use ? #57

yvestan opened this issue Jan 18, 2011 · 7 comments
Labels

Comments

@yvestan
Copy link

yvestan commented Jan 18, 2011

Hello,

Thank for this program.

Can you tell me which version of Python required for the program? It seems to work with Python 2.6 (Ubuntu) but not with Python 2.5 (Debian) ?

Yves

[youtube] Setting language
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl-NEW", line 2554, in 
    retcode = fd.download(all_urls)
  File "/usr/local/bin/youtube-dl-NEW", line 556, in download
    ie.extract(url)
  File "/usr/local/bin/youtube-dl-NEW", line 790, in extract
    self.initialize()
  File "/usr/local/bin/youtube-dl-NEW", line 785, in initialize
    self._real_initialize()
  File "/usr/local/bin/youtube-dl-NEW", line 890, in _real_initialize
    urllib2.urlopen(request).read()
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 419, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302
    return self.parent.open(new)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/local/bin/youtube-dl-NEW", line 208, in http_response
    resp = urllib2.addinfourl(gz, old_resp.headers, old_resp.url, old_resp.code)
TypeError: __init__() takes exactly 4 arguments (5 given)
@rg3
Copy link
Collaborator

rg3 commented Jan 18, 2011

It looks like the latest version in the repository is breaking backwards compatibility with Python 2.4. That's the target version right now. Thanks for reporting. I'll try to find out how to fix this. In the mean time, use the "stable" release.

@rg3
Copy link
Collaborator

rg3 commented Jan 18, 2011

Can you try the latest repository revision to see if it works now? Thanks in advance.

@yvestan
Copy link
Author

yvestan commented Jan 18, 2011

Thank you for your reply !

It does not work :

[youtube] Setting language
Traceback (most recent call last):
  File "./youtube-dl-NN", line 2554, in 
    retcode = fd.download(all_urls)
  File "./youtube-dl-NN", line 556, in download
    ie.extract(url)
  File "./youtube-dl-NN", line 790, in extract
    self.initialize()
  File "./youtube-dl-NN", line 785, in initialize
    self._real_initialize()
  File "./youtube-dl-NN", line 890, in _real_initialize
    urllib2.urlopen(request).read()
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 419, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302
    return self.parent.open(new)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 494, in http_response
    code, msg, hdrs = response.code, response.msg, response.info()
AttributeError: addinfourl instance has no attribute 'code'

@rg3
Copy link
Collaborator

rg3 commented Jan 18, 2011

Download and try again. :)

@yvestan
Copy link
Author

yvestan commented Jan 19, 2011

Sorry, it does not work :

[youtube] Setting language
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl-NN", line 2560, in 
    retcode = fd.download(all_urls)
  File "/usr/local/bin/youtube-dl-NN", line 562, in download
    ie.extract(url)
  File "/usr/local/bin/youtube-dl-NN", line 796, in extract
    self.initialize()
  File "/usr/local/bin/youtube-dl-NN", line 791, in initialize
    self._real_initialize()
  File "/usr/local/bin/youtube-dl-NN", line 896, in _real_initialize
    urllib2.urlopen(request).read()
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 419, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302
    return self.parent.open(new)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 494, in http_response
    code, msg, hdrs = response.code, response.msg, response.info()
AttributeError: addinfourl instance has no attribute 'code'

Thanks !

@rg3
Copy link
Collaborator

rg3 commented Jan 19, 2011

Holy crap. Are you available on IRC or something like that so we can test this properly with a faster feedback?

BTW: do not close the issue when commenting.

@rg3
Copy link
Collaborator

rg3 commented Jan 21, 2011

Fixed yesterday, closing issue.

joedborg referenced this issue in joedborg/youtube-dl Nov 17, 2020
[pull] master from rg3:master
tsukumijima pushed a commit to tsukumijima/youtube-dl that referenced this issue Dec 2, 2020
[youtube] fix: extract mix playlist ids from ytInitialData (ytdl-org#33)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants