Bug 74883 - Python 2.4 upgrade breaks port net/py-bittorrent [fix included]
Summary: Python 2.4 upgrade breaks port net/py-bittorrent [fix included]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mario Sergio Fujikawa Ferreira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-09 03:30 UTC by Jonathan Lennox
Modified: 2004-12-10 18:51 UTC (History)
0 users

See Also:


Attachments
file.diff (1.03 KB, patch)
2004-12-09 03:30 UTC, Jonathan Lennox
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!