gr-gotenna
gr-gotenna copied to clipboard
scapy_gotenna.py TypeError: super() argument 1 must be type, not classobj
When I run the GRC file, or simply "import gotenna" from python, I got the following error:
/usr/local/lib/python2.7/dist-packages/gotenna/scapy_gotenna.py in init(self, name, default, cls, pad_len) 76 slots = ['pad_len'] 77 def init(self, name, default, cls, pad_len): ---> 78 super(SaveRoomPacketListField, self).init(name, default, cls, length_from=lambda x: None) TypeError: super() argument 1 must be type, not classobj
Going off a Stackoverflow answer, I added object
as a second parrent class of SaveRoomPacketListField
, resulting in the following line 68 of scapy_gotenna.py:
class SaveRoomPacketListField(PacketListField,object):
That seemed to fix that particular issue for me, though I don't know if that's the "right" way to do it.