[ python-Bugs-1167397 ] Python 2.4 causes BitTorrent 3.4.2 failure
SourceForge.net
noreply at sourceforge.net
Mon Mar 21 21:44:49 CET 2005
Bugs item #1167397, was opened at 2005-03-21 09:37
Message generated for change (Comment added) made by bsder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1167397&group_id=5470
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew P. Lentvorski, Jr. (bsder)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.4 causes BitTorrent 3.4.2 failure
Initial Comment:
The following failure messages gets dumped out of
BitTorrent 3.4.2 when run against Python 2.4:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/threading.py", line
442, in __bootstrap
self.run()
File "/usr/local/lib/python2.4/threading.py", line
422, in run
self.__target(*self.__args, **self.__kwargs)
File
"/home/andrewl/python/lib/python2.4/site-packages/BitTorrent/Rerequester.py",
line 84, in rerequest
h = urlopen(url)
File "/usr/local/lib/python2.4/urllib2.py", line 130,
in urlopen
return _opener.open(url, data)
File "/usr/local/lib/python2.4/urllib2.py", line 364,
in open
response = meth(req, response)
File "/usr/local/lib/python2.4/urllib2.py", line 468,
in http_response
code, msg, hdrs = response.code, response.msg,
response.info()
AttributeError: addinfourldecompress instance has no
attribute 'code'
----------------------------------------------------------------------
>Comment By: Andrew P. Lentvorski, Jr. (bsder)
Date: 2005-03-21 20:44
Message:
Logged In: YES
user_id=752864
The same BitTorrent version works just fine under 2.3.5.
addinfourldecompress is a BitTorrent object which inherits
from Python's addinfourl in urllib.py.
The following comment was found in a patch that attempted to
work around the issue:
# As of Python 2.4 http_open response also has 'code' and 'msg'
# members, and HTTPErrorProcessor breaks if they don't exist.
This problem has been cited in a couple of different
contexts. I saw it in a bug report for bittornado on
FreeBSD. I also saw it in a RedHat list concerning breakage
in the yum utility.
Annoyingly, nobody seems to have filed it upstream with the
Python folks.
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2005-03-21 14:55
Message:
Logged In: YES
user_id=357491
Does this happen if the exact same files are run in 2.3? I can't find
addinfourldecompress in Python; is it a BitTorrent class?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1167397&group_id=5470
More information about the Python-bugs-list
mailing list