[bittorrent] btreannounce.py problems (or is it me?)

etienne deleflie et at lalila.net
Fri Nov 11 16:46:11 EST 2005


... just when I thought my problems were all over ....

I'm on the latest Ubuntu... trying to run btreannounce on some torrents 
(one was made in windows, the other was made in azeurus (dont know what 
OS)... both the torrents "work".

If I run btreannounce.py in python2.4 I get:

Traceback (most recent call last):
  File "/usr/bin/btreannounce.py", line 25, in ?
    metainfo = bdecode(h.read())
  File "/usr/lib/python2.4/site-packages/BitTorrent/bencode.py", line 
64, in bdecode
    r, l = decode_func[x[0]](x, 0)
  File "/usr/lib/python2.4/site-packages/BitTorrent/bencode.py", line 
40, in decode_dict
    k, f = decode_string(x, f)
  File "/usr/lib/python2.4/site-packages/BitTorrent/bencode.py", line 
23, in decode_string
    n = long(x[f:colon])
ValueError: invalid literal for long(): tion datei1130382966e4

If I run btreannounce.py in python2.3 I get:

Traceback (most recent call last):
  File "/usr/bin/btreannounce.py", line 25, in ?
    metainfo = bdecode(h.read())
  File "/usr/lib/python2.3/site-packages/BitTorrent/bencode.py", line 
73, in bdecode
    raise BTFailure, 'not a valid bencoded string'
BitTorrent.BTFailure: not a valid bencoded string

........ anyone got any ideas ?

Etienne



More information about the BitTorrent mailing list