python version to use ? #44

Closed
opened 2026-02-20 21:00:29 -05:00 by deekerman · 7 comments
Owner

Originally created by @yvestan on GitHub (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)
Originally created by @yvestan on GitHub (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 <pre> [youtube] Setting language Traceback (most recent call last): File "/usr/local/bin/youtube-dl-NEW", line 2554, in <module> 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) </pre>
deekerman 2026-02-20 21:00:29 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rg3 commented on GitHub (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 commented on GitHub (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.
Author
Owner

@rg3 commented on GitHub (Jan 18, 2011):

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

@rg3 commented on GitHub (Jan 18, 2011): Can you try the latest repository revision to see if it works now? Thanks in advance.
Author
Owner

@yvestan commented on GitHub (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'
@yvestan commented on GitHub (Jan 18, 2011): Thank you for your reply ! It does not work : <pre> [youtube] Setting language Traceback (most recent call last): File "./youtube-dl-NN", line 2554, in <module> 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' </pre>
Author
Owner

@rg3 commented on GitHub (Jan 18, 2011):

Download and try again. :)

@rg3 commented on GitHub (Jan 18, 2011): Download and try again. :)
Author
Owner

@yvestan commented on GitHub (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 !

@yvestan commented on GitHub (Jan 19, 2011): Sorry, it does not work : <pre> [youtube] Setting language Traceback (most recent call last): File "/usr/local/bin/youtube-dl-NN", line 2560, in <module> 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' </pre> Thanks !
Author
Owner

@rg3 commented on GitHub (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 commented on GitHub (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.
Author
Owner

@rg3 commented on GitHub (Jan 21, 2011):

Fixed yesterday, closing issue.

@rg3 commented on GitHub (Jan 21, 2011): Fixed yesterday, closing issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#44
No description provided.