Bug 74883

Summary: Python 2.4 upgrade breaks port net/py-bittorrent [fix included]
Product: Ports & Packages Reporter: Jonathan Lennox <lennox>
Component: Individual Port(s)Assignee: Mario Sergio Fujikawa Ferreira <lioux>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jonathan Lennox 2004-12-09 03:30:21 UTC
After upgrading the port lang/python to version 2.4, the port
net/py-bittorrent is broken.

This appears to be an incompatibility in bittorrent's zurllib.py file; the
patch below has also been sent to the bittorrent development list.

This problem, and the same solution, appears to also apply to the port
net/bittornado.

Fix: Apply the following patch to net/py-bittorrent:
How-To-Repeat: $ btdownloadheadless.py 'http://people.freebsd.org/~scottl/5.3-torrent/5.3-RELEASE-i386-all.torrent'
Traceback (most recent call last):
  File "/usr/local/bin/btdownloadheadless.py", line 163, in ?
    run(argv[1:])
  File "/usr/local/bin/btdownloadheadless.py", line 158, in run
    download(params, h.chooseFile, h.display, h.finished, h.error, Event(), cols, h.newpath)
  File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 120, in download
    h = urlopen(config['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 1 Herve Quiroz freebsd_committer freebsd_triage 2004-12-09 03:34:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lioux

Over to maintainer.
Comment 2 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2004-12-10 18:51:33 UTC
State Changed
From-To: open->closed

Committed, thanks!