From owner-freebsd-gnome@FreeBSD.ORG Tue Dec 7 19:22:07 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C9DB16A4CE; Tue, 7 Dec 2004 19:22:07 +0000 (GMT) Received: from pop-a065d23.pas.sa.earthlink.net (pop-a065d23.pas.sa.earthlink.net [207.217.121.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0565343D67; Tue, 7 Dec 2004 19:22:07 +0000 (GMT) (envelope-from rpratt1950@earthlink.net) Received: from fl-69-34-75-250.dyn.sprint-hsd.net ([69.34.75.250] helo=kt.weeble.com) by pop-a065d23.pas.sa.earthlink.net with smtp (Exim 3.33 #1) id 1CbkuI-000093-00; Tue, 07 Dec 2004 11:21:54 -0800 Date: Tue, 7 Dec 2004 14:21:51 -0500 From: Randy Pratt To: Hye-Shik Chang Message-Id: <20041207142151.4cb54dd6.rpratt1950@earthlink.net> In-Reply-To: <4f0b69dc04120618134047d8e6@mail.gmail.com> References: <20041206140142.24a01461.rpratt1950@earthlink.net> <4f0b69dc04120618134047d8e6@mail.gmail.com> X-Mailer: Sylpheed version 1.0.0beta4 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: gnome@freebsd.org cc: mezz@freebsd.org Subject: Re: net/gnome-btdownload problem with python-2.4 update X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 19:22:07 -0000 On Tue, 7 Dec 2004 11:13:42 +0900 Hye-Shik Chang wrote: > On Mon, 6 Dec 2004 14:01:42 -0500, Randy Pratt wrote: > > The net/gnome-btdownload builds and installs fine but has some > > run-time issues after the latest python-2.4 update: > > > > $ gnome-btdownload sample.torrent & > > [1] 67064 > > bash-2.05b$ /usr/X11R6/bin/gnome-btdownload:713: DeprecationWarning: gtk.Progress.set_percentage is deprecated, use gtk.ProgressBar methods > > progressbar_download_status.set_percentage(dict['fractionDone']) > > Exception in thread Thread-1: > > 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 "/usr/local/lib/python2.4/site-packages/BitTorrent/Rerequester.py", line 85, 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' > > > > This patch may help. Please let me know if you encounter another problem. > > --- BitTorrent/zurllib.py.orig Mon Dec 6 21:38:20 2004 > +++ BitTorrent/zurllib.py Mon Dec 6 21:41:30 2004 > @@ -35,7 +35,10 @@ > if DEBUG: > pprint.pprint(headers.dict) > url = fp.url > - return addinfourldecompress(fp, headers, url) > + resp = addinfourldecompress(fp, headers, url) > + resp.code = fp.code > + resp.msg = fp.msg > + return resp > > > Hye-Shik Hi, That patch does fix the errors on startup. The download starts as it normally would. However, if I stop the torrent download and then try to resume it, a new set of run-time errors develop: Exception in thread Thread-3: 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 "/usr/local/lib/python2.4/site-packages/BitTorrent/Rerequester.py", line 85, 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 358, in open response = self._open(req, data) File "/usr/local/lib/python2.4/urllib2.py", line 376, in _open '_open', req) File "/usr/local/lib/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/zurllib.py", line 33, in http_open fp = HTTPHandler.http_open(self,req) File "/usr/local/lib/python2.4/urllib2.py", line 1021, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/local/lib/python2.4/urllib2.py", line 994, in do_open r = h.getresponse() File "/usr/local/lib/python2.4/httplib.py", line 862, in getresponse response.begin() File "/usr/local/lib/python2.4/httplib.py", line 333, in begin version, status, reason = self._read_status() File "/usr/local/lib/python2.4/httplib.py", line 297, in _read_status raise BadStatusLine(line) BadStatusLine It just seems to stop there with no further activity. I did have an instance of testing the resume function where I didn't get the error message above, just a lock up of gnome-btdownload where I had to manually kill the process. So it seems like this is going to take some more work and testing to shake things out. Thanks for your help and I'll do what I can to assist in testing. Best regards, Randy --