If your btfriend.py program has recently started spitting error messages that look like this:
Traceback (most recent call last):
File "./btfriend.py", line 265, in ?
CheckSharing()
File "./btfriend.py", line 256, in CheckSharing
Share(file, key, prio)
File "./btfriend.py", line 224, in Share
DownloadTorrent(key, file)
File "./btfriend.py", line 162, in DownloadTorrent
response = urlopen(url).read()
File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.3/urllib2.py", line 326, in open
'_open', req)
File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
result = func(*args)
File "/usr/lib/python2.3/site-packages/BitTorrent/zurllib.py", line 33, in http_open
fp = HTTPHandler.http_open(self,req)
File "/usr/lib/python2.3/urllib2.py", line 901, in http_open
return self.do_open(httplib.HTTP, req)
File "/usr/lib/python2.3/urllib2.py", line 895, in do_open
return self.parent.error('http', req, fp, code, msg, hdrs)
File "/usr/lib/python2.3/urllib2.py", line 352, in error
return self._call_chain(*args)
File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
result = func(*args)
File "/usr/lib/python2.3/urllib2.py", line 412, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error -1:
It is because the tracker nowadays requires that when downloading torrent files directly from the tracker, the info hash must be hex-coded.
Therefore, a new version of btfriend.py has been released, addressing this problem.
http://bisqwit.iki.fi/src/btfriend.py <- download here.
EDIT: Nevermind that. I guess Debian folks had broke it. I downloaded v4 of Bittorrent and it works fine.