I got this error using the python stuff on linux.
Code:
Complete trace:
# Traceback (most recent call last):
File "BitTornado/RawServer.py", line 128, in listen_forever
self.sockethandler.handle_events(events)
File "BitTornado/SocketHandler.py", line 257, in handle_events
s.handler.data_came_in(s, data)
File "BitTornado/BT1/Encrypter.py", line 156, in data_came_in
x = self.next_func(m)
File "BitTornado/BT1/Encrypter.py", line 122, in read_message
self.connecter.got_message(self, s)
File "BitTornado/BT1/Connecter.py", line 208, in got_message
b = Bitfield(self.numpieces, message[1:])
File "BitTornado/bitfield.py", line 21, in __init__
counts = [sum([(i >> j) & 1 for j in xrange(8)]) for i in xrange(256)]
NameError: global name 'sum' is not defined
I googled and added the following line to bitfield.py at line 21:
Code:
sum=lambda numberlist:reduce(lambda x,y:x+y,numberlist,0.0)
Don't know if thats correct, cause my python knowledge is zero.
But i can start it up without errors.
Just wanting you to know this.
It seems to work when you add this line.